A function to transform numeric and character columns in a barn
object into new factor columns.
It appends "_num" for numeric columns, "_cat" for character columns, and renames both to factors.
Original columns are deleted from the combined data frame within the barn object.
Arguments
- barn_obj
A
barn
object, created bybarn()
.- numeric_suffx
The suffix for new numeric factor columns. Default is "_num".
- nominal_suffix
The suffix for new nominal factor columns. Default is "_cat".