Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

id

Compute a unique numeric id for each unique row in a data frame.


Description

Properties:

  • order(id) is equivalent to do.call(order, df)

  • rows containing the same data have the same value

  • if drop = FALSE then room for all possibilites

Usage

id(.variables, drop = FALSE)

Arguments

.variables

list of variables

drop

drop unusued factor levels?

Value

a numeric vector with attribute n, giving total number of possibilities

See Also


plyr

Tools for Splitting, Applying and Combining Data

v1.8.6
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.