powered by
fct_expand(f, ...)
f <- factor(sample(letters[1:3], 20, replace = TRUE)) f fct_expand(f, "d", "e", "f") fct_expand(f, letters[1:6])
Run the code above in your browser using DataLab