remove_trim_failures {densitr} | R Documentation |
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.
remove_trim_failures(dp.trimmed)
dp.trimmed |
A list of trimmed dp objects, a result of calling dtriml or dtriml_s on a dp list with "return.fail = FALSE". |
A dp list of trimmed objects with failures removed.
dptriml, dptriml_s
## 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)