Skip to contents

TODO: Write this

Usage

cfactor(x = unspecified(), codes, ordered = FALSE)

cordered(x, codes)

is.cfactor(x)

is.cordered(x)

Arguments

x

a vector of character or numeric codes

codes

named vector of unique codes that declares the mapping of labels to codes

ordered

logical flag to determine if the codes should be regarded as ordered (in the order given).

Value

a new cfactor