Description Usage Arguments Value Examples
Given a data.frame with incorrect types, convert them to the types in a prespecified classes_df data frame.
1 | convert_classes(X, classes_df, date_formats = NULL)
|
X |
The data.frame or data.table whose columns we need to change classes of. |
classes_df |
A data.frame with two columns, "name" and "class", specifying the desired class for each column name in X. |
date_formats |
A vector of date formatting types to try when convert dates to POSIXlt class. |
X The version of X with classes as specified in classes_df.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.