###-----------------------------------------------------------------------------
###
### factor2num - conversion of a factor containing numerical levels
###
###
##TODO: export
factor2num <- function (f)
as.numeric(levels (f)) [as.numeric (f)]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.