dropModels
function takes model fits such as the ones returned by
xcms:::rowFitModel
or withinBatchFit()
and removes models idenfified by
function FLAG_FUN
. This function can be one of the flag_*
functions (such
as flag_model_residual()
) that take a linear model fit as input and return
a logical indicating whether the model fit is problematic or not.R/dropModels.R
dropModels.Rd
Remove model fits based on specified criteria
The dropModels
function takes model fits such as the ones returned by
xcms:::rowFitModel
or withinBatchFit()
and removes models idenfified by
function FLAG_FUN
. This function can be one of the flag_*
functions (such
as flag_model_residual()
) that take a linear model fit as input and return
a logical indicating whether the model fit is problematic or not.
dropModels(x, FLAG_FUN, ...)
x |
|
---|---|
FLAG_FUN |
|
... | additional parameters to be passed to |
The input x
with poor quality models identified by FUN
replaced
with NA
.
Johannes Rainer