Trims a data frame or an S3 object's .data attributs.
Arguments
- data_obj
- A data frame or an S3 object containing the data to be trimmed. For a data frame, the function operates directly on it. For an S3 object, the function expects a - .dataattribute containing the data.
- trim_quantiles
- A numeric vector of length 2 specifying the lower and upper quantiles used for trimming the data. 
- variable
- The name of the variable in the data on which the trimming is to be applied. 
Value
Returns a trimmed data frame or an S3 object with the $.data attribute trimmed, depending on the input type.