View source: R/compare_frames.R
| checkColsFormUniqueKeys | R Documentation | 
For local data.frame only.
checkColsFormUniqueKeys(data, keyColNames)
data | 
 data.frame to work with.  | 
keyColNames | 
 character array of column names to check.  | 
logical TRUE if the rows of data are unique addressable by the columns named in keyColNames.
d <- data.frame(key = c('a','a', 'b'), k2 = c(1 ,2, 2))
checkColsFormUniqueKeys(d, 'key') # should be FALSE
checkColsFormUniqueKeys(d, c('key', 'k2')) # should be TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.