columntrans | R Documentation |
Change data type
factor.it(x) <- value
factor.it(x, value)
numeric.it(x, value)
numeric.it(x) <- value
x |
dataframe |
value |
column names |
factor or numeric columns in a dataframe
str(mtcars)
factor.it(mtcars,c("cyl", "vs", "am", "gear"))
factor.it(mtcars)=c("cyl", "vs", "am", "gear")
str(mtcars)
numeric.it(mtcars,c("cyl", "vs", "am", "gear"))
numeric.it(mtcars)=c("cyl", "vs", "am", "gear")
str(mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.