dptriml {densitr} | R Documentation |
Automatically trim a list of density profiles on both sides
Description
Calls dptrim
on a list of dp objects and return a list of
trimmed objects. If automatic detection fails, the dp objects are
not trimmed. Can be run in parallel on multiple cores, this speeds
up the trimming process significantly.
Usage
dptriml(dp.list, rreport = FALSE, cl = 1, ...)
Arguments
dp.list |
A list of dp objects, see |
rreport |
Return an embedded report on automatic trim success,
mandatory when using |
cl |
Number of cores to run the trimming in parallel, passed through to |
... |
Parameters minseglen, span and nroll, will get passed through to dpdetect_s, adjust when profile resolution is not 1/100 of a millimeter. |
Value
A list of trimmed dp objects. When rreport = TRUE, it return a two-item list of (i) trimmed dp objects and (ii) trimming report data frame.
See Also
dptrim, dptrim_s, dptriml_s,
Examples
## load several dpa files
dp.list <- dpload(dp.directory = system.file("extdata", package = "densitr"))
## trim the measurements
dp.trimmed <- dptriml(dp.list)