https://github.com/hadley/dplyr
Tip revision: 16647fc0e6fa2d2905a11efe08fbca2db0ec4df1 authored by Romain Francois on 22 July 2020, 12:05:00 UTC
Release summary
Release summary
Tip revision: 16647fc
location.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/deprec-location.R
\name{location}
\alias{location}
\alias{changes}
\title{Print the location in memory of a data frame}
\usage{
location(df)
changes(x, y)
}
\arguments{
\item{df}{a data frame}
\item{x, y}{two data frames to compare}
}
\description{
\Sexpr[results=rd, stage=render]{lifecycle::badge("deprecated")}
This is useful for understand how and when dplyr makes copies of data
frames
}
\examples{
location(mtcars)
# ->
lobstr::ref(mtcars)
mtcars2 <- mutate(mtcars, cyl2 = cyl * 2)
# ->
lobstr::ref(mtcars2)
changes(mtcars, mtcars2)
# ->
lobstr::ref(mtcars, mtcars2)
}
\keyword{internal}