rollUp: Summarize assessments to different spatial resolutions

View source: R/rollUp.R

rollUpR Documentation

Summarize assessments to different spatial resolutions

Description

Summarizes and aggregates assessments at one spatial resolution to another spatial resolution. For example, a collection of assessments conducted at the site/use/parameter level can be rolled up to the AU/use/parameter level or to the AU/use/level.

Usage

rollUp(
  data,
  group_vars = c("ASSESS_ID", "BeneficialUse", "R3172ParameterName"),
  cat_var = "IR_Cat",
  expand_uses = TRUE,
  print = TRUE
)

Arguments

data

A list of assessment output objects to be rolled up to a different spatial resolution.

group_vars

Vector of column names on which to group data for assessment rollups. Defaults to aggregate by ASSESS_ID, BeneficialUse, and R3172ParameterName.

cat_var

Name of assessment category column.

expand_uses

Logical. If TRUE (default), uses are expanded in the output to include all uses associated with group_vars, including unassessed groups which are marked as 'NA' in output dataframe column AssessCat. If FALSE, only assessed groups are included in the output.

print

Logical. If TRUE (default) print summary table of applicable assessment categories & parameters.

Value

Returns dataframe with assessment categories for each AU/BenUse/R3172ParameterName.


ut-ir-tools/irTools documentation built on Jan. 19, 2024, 6:55 p.m.