Truncates or removes high values in a given column of a data frame.

truncatehi(df, x, t = 4, removeit = FALSE)

Arguments

df

The input data frame.

x

The column name to truncate or remove high values from.

t

The threshold value (default is 4).

removeit

Logical indicating whether to remove or truncate high values (default is FALSE).

Value

The modified data frame.