Description Usage Arguments Value Examples
col2factor transform columns type to factor.
| 1 | col2factor(x, start, end = ncol(x))
 | 
| x | a dataframe | 
| start | number of start column | 
| end | number of last column (default=last) | 
Return a dataframe with transformed columns.
| 1 2 3 4 | v=data.frame(c(3,2,5,6,5,4))
class(v[,1]) #here class is numeric
v=col2factor(v,1)
class(v[,1]) #now class is character
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.