set_non_detects | R Documentation |
Set a value where the actual value of a measurement is less than the method detection limit (MDL)
set_non_detects( value, mdl_flag = NULL, mdl_value = NULL, mdl_action = c("zero", "mdl", "half", "na") )
value |
a numeric vector of measured values |
mdl_flag |
a character vector the same length as |
mdl_value |
a numeric vector the same length as |
mdl_action |
What to do with values below the detection limit. Options
are |
You must supply either mdl_flag
or mdl_value
, or both. When only
mdl_flag
is supplied, it is assumed that the original value
has been
set to the MDL, and will be adjusted according to the mdl_action
. When
only mdl_value
is supplied then any value
less than that will be
adjusted appropriately using the corresponding mdl_value
. When both
mdl_flag
and mdl_value
are supplied, any value
with a corresponding
<
in the mdl_flag
vector will be adjusted appropriately using the
corresponding mdl_value
.
a numeric vector the same length as value with non-detects adjusted accordingly
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.