correct_failures {densitr} | R Documentation |
Manually correct failures after automatic trim detection
Description
This function will take a list of trimmed dp objects (a result of dptriml or dptriml_s function) and interactively ask the user to assign starting/ending points manually. Follow-up to automatic trim functions or to be used manually, will display a plot with the density profiles for each failure in trim detection sequentially. The plot title will display whether you are selection start or end positions. Use your mouse to select starting/ending point on the plot, your selection will then be displayed on the plot. Will return a complete list, both with the non-failed automatically trimmed dp objects and those corrected manually. The automatic trim functions should be called with the option "rreport = TRUE", which embeds a trimming report when returning the list of trimmed dp objects.
Usage
correct_failures(dp.trimmed)
Arguments
dp.trimmed |
A list of dp objects, trimmed, with the report embedded ("rreport = TRUE"). |
Value
A list of trimmed profiles, including both automatic and manual trimming.
See Also
dptrim, dptriml, manual_trim_detect
Examples
## load all dp files
dp.list <- dpload(dp.directory = system.file("extdata", package = "densitr"))
## trim the list
dp.trimmed <- dptriml(dp.list, rreport = TRUE)
## manually correct the failures
dp.corrected <- correct_failures(dp.trimmed)