separate_trim_failures {densitr} | R Documentation |
Remove automatic trim failures from a list of trimmed dp objects and return ONLY failures
Description
An inverse of remove_trim_failures, return a list of failed trimming objects from a trimmed dp list. 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 "rreport = FALSE", which embeds a trimming report when returning the list of trimmed dp objects. If no failures found, it will return a list of trimmed profiles without the report attached.
Usage
separate_trim_failures(dp.trimmed)
Arguments
dp.trimmed |
A list of trimmed dp objects, a result of calling dptriml or dptriml_s on a dp list with "rreport = FALSE". |
Value
Two lists, one with start failures and one with end failures.
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)
## separate trimming failures
dp.nofailures <- separate_trim_failures(dp.trimmed)
[Package densitr version 0.2 Index]