identifying: Identifying Columns

Description Usage Arguments Details Value Examples

View source: R/dataframes.R

Description

Get or set identifying columns on a data frame

Usage

1
2
3
4

Arguments

col

a column in a data frame

data

a data frame

value

a single logical in the case of identifying, or a character vector in the case of identifying_columns

Details

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.

Value

identifying returns a single logical. identifying_columns returns a character vector.

Examples

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")

edpclient documentation built on May 2, 2019, 2:01 p.m.