https://github.com/hadley/dplyr
Raw File
Tip revision: 39ee11bfe78c4a301070b00d3b92127217786ba7 authored by Hadley Wickham on 23 January 2020, 16:18:08 UTC
Preserve drop attr
Tip revision: 39ee11b
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}
back to top