Description Usage Arguments Value
Coerce select columns to a certain class
1 | coerceClass(data, columns, fun = "as.factor")
|
data |
A data.table |
columns |
A character vector of columns to coerce |
fun |
A function to coerce columns. Default is as.factor |
a data.table with columns specified in columns
coerced to a
certain class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.