trim: Trim scores

View source: R/trim.R

trimR Documentation

Trim scores

Description

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

Usage

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)

dr-JT/datawrangling documentation built on June 25, 2022, 7:47 p.m.