R/sampleVarSpec.R
validate_n_levels.Rd
This validation function checks that a given vector x is a factor with the specified number of levels.
x
validate_n_levels(x, name, n_levels)
(factor) factor to validate.
factor
(string) name of x in the app.
string
(count) required number of factor levels in x.
count