convert column to type numeric

cols_to_numeric(df, col_names)

Arguments

df

dataframe

col_names

vector of column names or indices to convert to numeric