trimByResiduals: Trim rows from a dataframe based on a vector of residuals.

View source: R/trimByResiduals.R

trimByResidualsR Documentation

Trim rows from a dataframe based on a vector of residuals.

Description

Trims rows from a dataframe based on a corresponding vector of "residuals".

Usage

trimByResiduals(tbl, resids, n = 5, debug = TRUE)

Arguments

tbl
  • dataframe with original data. row names should be 1:nrows BEFORE residuals are calculated

resids
  • vector of residuals to fit

n
  • number of rows to drop

debug
  • flag to print diagnostics

Value

the trimmed dataframe


wStockhausen/wtsUtilities documentation built on March 16, 2024, 10:38 a.m.