Description Usage Arguments Value Examples
findMissings provides a vector (per variable), containing the observations in the dataset.
1 | findMissings(data, vars, idVar = NULL)
|
data |
data containing 'vars' |
vars |
list of variable names to be checked for missing |
idVar |
id variable which will be printed showing which observations are missing data for vars. If NULL, then row.names() will be printed. |
a list of missing ids/row.names per variable listed in vars
1 2 3 | #missdata <- data.frame(id = 1:1000, C1 = sample(c(1,NA), 1000, replace=TRUE,
# prob=c(.8,.2)), C2 = sample(c(1,NA), 1000, replace=TRUE, prob=c(.8,.2)))
#findMissings(data = missdata, vars = c("C1", "C2"),idVar = "id")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.