Remove replicates in SWMP nutrient data to keep approximate monthly time step
1 2 3 4 5
input swmpr object
arguments passed to other methods
function to combine values, defaults to mean
Raw nutrient data obtained from the CDMO will usually include replicate samples that are taken within a few minutes of each other. This function combines nutrient data that occur on the same day. The
datetimestamp column will always be averaged for replicates, but the actual observations will be combined based on the user-supplied function which defauls to the mean. Other suggested functions include the
max. The entire function call including treatment of
NA values should be passed to the
FUN argument (see the examples). The function is meant to be used after
qaqc processing, although it works with a warning if QAQC columns are present.
Returns a swmpr object for nutrient data with no replicates.
1 2 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.