If you have a formula with as.factor(var) in it, this function will create a new column with the factor version of var with a column called as.factor(var). Uses model.frame
an R formula
data, with (maybe) some extra columns
David L Miller
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.