Description Usage Arguments Value Examples
View source: R/detect_factor_be_character.R
Detect factors that should be character or not?
1 |
x |
factor |
if the number of unique values does not equal to the length, and FALSE
otherwise.
1 2 3 4 5 6 7 8 | factor1 <- factor(c("1", "2", "3"))
factor2 <- factor(c("apple", "pear", "banana"))
# This is a character:
detect_factor_be_character(factor1)
# This is a character
detect_factor_be_character(factor2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.