R/cfactor.R
cfactor.Rd
TODO: Write this
cfactor(x = unspecified(), codes, ordered = FALSE) cordered(x, codes) is.cfactor(x) is.cordered(x)
a vector of character or numeric codes
named vector of unique codes that declares the mapping of labels to codes
logical flag to determine if the codes should be regarded as ordered (in the order given).
a new cfactor
cfactor