prep_values: Prepare reported chemistry values Groups the data according...

Description Usage Arguments Value

View source: R/prep_values.R

Description

Prepare reported chemistry values Groups the data according the the block specified in the water quality standards (WQS) table. Splits the data by the statistics column in the WQS's table. Aregates the split data by group and applies the specified statistic.

Usage

1
2
3
4
5
6
7
8
prep_values(
  .data,
  .block_col,
  .value_col,
  .statistic_col,
  .min_n_col,
  .new_value_col
)

Arguments

.data

a data frame

.block_col

aa character string representing the name of a column in .data that specifies how to block/group the data.

.value_col

a character string representing the name of a column in .data that represents the reported parameter value.

.statistic_col

a character string representing the name of a column in .data that specifies the statistical function to be applied to the values in .value_col based on the groups defined by .block_col.

.new_value_col

a character string representing the name of aggregated value.

Value

A data frame.


BWAM/stayCALM documentation built on May 21, 2020, 3:24 p.m.