remove_trim_failures: Remove automatic trim failures from a list of trimmed dp...

View source: R/manual.R

remove_trim_failuresR Documentation

Remove automatic trim failures from a list of trimmed dp objects and return only non-failed trimmed objects

Description

Returns a dp list of trimmed dp objects without the failed trim objects. Trimmed dp list should be a result of either calling dtriml on a list of dp objects or calling dtriml_s to remove the starting portions of the measurement. Both functions should be called with the option "return.fail = FALSE", which embeds a trimming report when returning the list of trimmed dp objects.

Usage

remove_trim_failures(dp.trimmed)

Arguments

dp.trimmed

A list of trimmed dp objects, a result of calling dtriml or dtriml_s on a dp list with "return.fail = FALSE".

Value

A dp list of trimmed objects with failures removed.

See Also

dptriml, dptriml_s

Examples


## load several dp files
dp.list <- dpload(dp.directory = system.file("extdata", package = "densitr"))
## trim the measurements
dp.trimmed <- dptriml(dp.list, rreport = TRUE)
## remove trimming failures
dp.nofailures <- remove_trim_failures(dp.trimmed)


krajnc/densitr documentation built on April 5, 2022, 7:49 p.m.