Description Usage Arguments Details Value Examples
Check input data for PHABMetrics
1 |
data |
Input data |
purge |
If true, a data frame will be returned with problematic rows removed, see details. |
msgs |
logical, if |
This function checks the following, relevant for the specified class of metrics:
algae
: There are no conflicting values for every unique combination of id
, LocationCode
, AnalyteName
, and VariableResult
combination should have only one entry in VariableResult
where AnalyteName
is equal to "Microalgae Thickness"
, "Macrophyte Cover"
, "Macroalgae Cover, Attached"
, or "Macroalgae Cover, Unattached"
. This check is done for algae()
metrics.
channelsinuosity
: There are no conflicting values for every unique combination of id
, LocationCode
, AnalyteName
, and Result
combination should have only one entry in Result
where AnalyteName
is equal to "Slope"
, "Length, Segment"
, "Elevation Difference"
, "Bearing"
, "Proportion"
, or "Length, Reach"
.
An error message is returned if the input data are not correctly formatted.
If msgs = FALSE
(default), a data frame is returned that is either the same
as the input if all checks have passed or a purged (purge = TRUE
) or non-purged
purge = FALSE
) with or without offending rows removed. If msgs = TRUE
, a two-element list is returned, where
the first element data
is the data frame that would be returned if msgs = FALSE
and the second element is msgs
with a concatenated character string of messages
indicating if all checks have passed and if not, which issues were encountered. In the
latter case, row numbers in the messages indicate which observations in the input data
had issues.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.