stats_aswe: Functions for calculating and retrieving statistics for ASWE...

View source: R/stats_aswe_function.R

stats_asweR Documentation

Functions for calculating and retrieving statistics for ASWE snow sites. This is the function that calls on internal functions to calculate and assemble relevant statistics. Snow statistics workflow, Ashlee Jollymore RFC. Started 23Oct2018; continually revised since then.

Description

Functions for calculating and retrieving statistics for ASWE snow sites. This is the function that calls on internal functions to calculate and assemble relevant statistics. Snow statistics workflow, Ashlee Jollymore RFC. Started 23Oct2018; continually revised since then.

Usage

stats_aswe(
  station_id,
  parameter_id = "SWE",
  survey_period = "All",
  get_year = "All",
  normal_min,
  normal_max,
  force = FALSE
)

Arguments

station_id

Station ID that you are assembling a statistics table for. Can be one or a string of multiple stations

parameter_id

Parameter that you are calculating statistics for. Defauls to "SWE", but can be "Snow_Depth", "Precipitation", or "Temperature"

survey_period

Month and day that you want to calculate data for. Defaults to "All"

get_year

Water year that you want to calculate statistics for. Defaults to "All"

normal_min

Year that the normal range will start

normal_max

Year that the normal range will end

force

Whether to overwrite the cached normal data. Defaults to FALSE


bcgov/bcsnowstats documentation built on Nov. 20, 2022, 9:12 a.m.