View source: R/partial-factor.R
partial_factor | R Documentation |
This special class can be passed as a ptype
in order to specify that the
result should be a factor that contains at least the specified levels.
partial_factor(levels = character())
levels |
Character vector of labels. |
pf <- partial_factor(levels = c("x", "y"))
pf
vec_ptype_common(factor("v"), factor("w"), .ptype = pf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.