https://github.com/hadley/dplyr
Tip revision: b7f4f4dfb42b45069024e85c53c6cd7a0b210d53 authored by Romain Francois on 04 July 2019, 04:52:29 UTC
uodate cran-comments
uodate cran-comments
Tip revision: b7f4f4d
id.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/id.r
\name{id}
\alias{id}
\title{Compute a unique numeric id for each unique row in a data frame.}
\usage{
id(.variables, drop = FALSE)
}
\arguments{
\item{.variables}{list of variables}
\item{drop}{drop unused factor levels?}
}
\value{
a numeric vector with attribute n, giving total number of
possibilities
}
\description{
Properties:
\itemize{
\item \code{order(id)} is equivalent to \code{do.call(order, df)}
\item rows containing the same data have the same value
\item if \code{drop = FALSE} then room for all possibilities
}
}
\keyword{internal}