checkValue | R Documentation |
Function to look for occurrences of a specific value in a GADSdat
.
checkValue(GADSdat, value, vars = namesGADS(GADSdat))
GADSdat |
|
value |
Single string indicating how missing labels are commonly named in the value labels. |
vars |
Character vector with the variable names to which |
The function checks occurrences of a specific value in a set of variables (default: all variables) in the GADSdat
and outputs a vector
containing the count of occurrences for all variables in which the value occurs. It explicitly supports checking for NA
.
A named integer.
# for all variables in the data
checkValue(pisa, value = 99)
# only for specific variables in the data
checkValue(pisa, vars = c("idschool", "g8g9"), value = 99)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.