Description Usage Arguments Value Examples
If the number of unique values equal to the length of input, we consider the input as factor; otherwise, we consider it as character
1 | detect_fct(x)
|
x |
factor |
boolean; TRUE
if input should be considered as factor,
FALSE
if input should be considered as character
1 2 3 4 5 6 | a <- factor(c("high", "high", "low"))
b <- factor(c("high", "low", "medium"))
detect_fct(a)
detect_fct(b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.