valid.factor: Backport of .valid.factor for R < 3.4.0

Description Usage Examples

Description

See the original description in base::.valid.factor.

Usage

1
.valid.factor(object)

Examples

1
2
3
4
# get function from namespace instead of possibly getting
# implementation shipped with recent R versions:
bp_.valid_factor = getFromNamespace(".valid.factor", "backports")
bp_.valid_factor(factor(letters[1:3]))

Example output

[1] TRUE

backports documentation built on Dec. 13, 2021, 5:08 p.m.