detect_factors: Detect factor that should be character

Description Usage Arguments Value Examples

View source: R/detect_factors.R

Description

This function checks whether the length of the factor is equal to the length of the unique values.

Usage

1

Arguments

x

a factor

Value

boolean; TRUE if input should be considered as factor, FALSE if input should be considered as character

Examples

1
2
detect_factors(factor(c("a","b","a")))
detect_factors(factor(c("a","b","c")))

Tangjiahui26/foofactors documentation built on May 18, 2019, 8:11 p.m.