Description Usage Arguments Details Value Examples
Get or set identifying columns on a data frame
1 2 3 4 | identifying(col)
identifying(col) <- value
identifying_columns(data)
identifying_columns(data) <- value
|
col |
a column in a data frame |
data |
a data frame |
value |
a single logical in the case of |
In EDP, "identifying columns" are columns that uniquely identify a row. When
preparing a data frame to build a population from, you can mark columns as
identifying. select
and simulate
return this annotation.
identifying
returns a single logical. identifying_columns
returns a character vector.
1 2 3 | d <- data.frame(stringsAsFactors = FALSE, a = c(1, 4), id = c("A", "B"))
identifying(d$id) <- TRUE
identifying_columns(d) <- c("id")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.