This function will trim variable(s) based on a zscore cutoff

trim(x, variables, cutoff = 3.5, replace = "NA", id = "")

Arguments

x

dataframe

variables

variables c() to be trimmed

cutoff

zscore cutoff to use for trimming (default: 3.5)

replace

What value should the trimmed values be replaced with. (default: replace = "NA")

Examples

trim(x, variables = c(), cutoff = 3.5)
#> Error in is.data.frame(x): object 'x' not found