%^% | R Documentation |
A pipe that allows easy conversion of a vector into a factor with specified levels.
lhs %^% rhs
lhs |
a character vector to be converted into a factor vector |
rhs |
a named list specifying how to rename the levels |
nsqipr:::`%^%`(
c("apple","cherry","pork"),
list(fruit = c("apple", "banana", "cherry"), meat = c("steak", "chicken", "pork"))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.