Description Usage Arguments Value Examples
Coerce each elements of a container class from one class to a different class
1 2 3 4 5 6 7 | coerce_each(x, from, to)
## S3 method for class 'data.frame'
coerce_each(x, from, to)
## S3 method for class 'data.table'
coerce_each(x, from, to)
|
x |
A container object such as a |
from |
A character vector containing the classes to coerce from |
to |
A character vector containing |
An object with the same class as x
data.table
data.table
1 | coerce_each( iris, "factor", "character" )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.