isid | R Documentation |
When passed a set of variable names and a dataframe, this function returns a check TRUE/FALSE whether or not the variables together uniquely identify a row in the dataframe.
isid(data, vars, verbose = FALSE)
data |
A dataframe. |
vars |
A character vector specifying the column names in the dataframe to check as unique. |
verbose |
A logical, default FALSE. If TRUE, isid will tell you how many rows you need and how many your variables uniquely identify |
TRUE or FALSE. TRUE indicates the variables uniquely identify the rows. FALSE indicates they do not.
Jared E. Knowles
data(stuatt)
isid(stuatt, vars = c("sid"))
isid(stuatt, vars = c("sid", "school_year"))
isid(stuatt, vars = c("sid", "school_year"), verbose = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.