[character]
Name of the column(s) specifying the response.
Target columns will not be capped.
Default is character(0).
cols
[character]
Which columns to convert.
Default is all numeric columns.
threshold
[numeric(1)]
Threshold for capping.
Every entry whose absolute value is equal or larger is converted.
Default is Inf.
impute
[numeric(1)]
Replacement value for large entries.
Large negative entries are converted to -impute.
Default is threshold.
what
[character(1)]
What kind of entries are affected?
“abs” means abs(x) > threshold,
“pos” means abs(x) > threshold && x > 0,
“neg” means abs(x) > threshold && x < 0.
Default is “abs”.