Description Usage Arguments Details Value Examples
View source: R/data_functions.R
Function to convert data from one class to that of another data object so that they are comparable.
1 | convert(from, to)
|
from |
Data object to be converted. |
to |
Data object with class to be converted to |
Follows R's upwards coercion logic, and is not downwards compatible, i.e, a numeric can be converted to a string, but a string, even "1", will not be converted to numeric.
A data object with the same class as 'to' parameter, if possible.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.