chk_is_factor: Check that a value has type "factor"

Description Usage Arguments Examples

View source: R/chk-single.R

Description

Check that a value has type "factor"

Usage

1
2
3

Arguments

x

A vector.

name

The name for x that will be used in error messages.

Examples

1
2
x <- factor(c("a", "b", "c"))
chk_is_factor(x, name = "x")

johnrbryant/demcheck documentation built on Dec. 31, 2021, 11:57 a.m.