Learn R Programming

rakeR (version 0.2.1)

check_ind: check_ind

Description

Checks an individual (survey) variable for common errors.

Usage

check_ind(ind_var)

Arguments

ind_var

the individual (survey) variable you want to check

Value

If no errors are detected the function returns silently. Any errors will stop the function or script to be investigated.

Details

Checks an individual (survey) variable for the following common errors:

  • That each row sums to 1 (i.e. correctly converted to a dummy variable)

Examples

Run this code
# NOT RUN {
## check_ind(ind_var)
# }

Run the code above in your browser using DataLab