Check an arbitrary column in a data.frame for factor type and coerce to character.

check_id_vars_col(df, col)

Arguments

df

An input data.frame.

col

The name of the column to check.

Value

The input data.frame df with the specified column being no longer a factor variable.