convertColTypes | R Documentation |
Convert column types of a data frame to match another tibble with the same column names. This function helps to setup tibbles to use dplyr::bind_rows with
convertColTypes(df, df_to_match)
df |
The tibble whose columns are to be converted |
df_to_match |
The tibble with the column type definitions |
NOTE: the column names must be exactly the same between the two tibbles
The df tibble with the column types converted to match the df_to_match tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.