ft_union | R Documentation |
Combines multiple factor vectors and returns a factor vector containing all unique levels.
ft_union(...)
... |
Factor vectors to be united. |
A factor vector containing all unique levels from all provided factors.
Kai Guo
# Example factor vectors
factor_vec1 <- factor(c('apple', 'banana'))
factor_vec2 <- factor(c('banana', 'cherry'))
factor_vec3 <- factor(c('date', 'fig'))
# Get union of levels
ft_union(factor_vec1, factor_vec2, factor_vec3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.