Update column type for each column in dataframe

update_col_types(df, types_df)

Arguments

df

dataframe, containing some columns as specified in types_df

types_df

dataframe, containing columns column_name and column_type

Value

dataframe, dataframe with updated column types (by default columns are updated to character type)