snow_basin_average: Function for returning the SBI for a specific subset of sites...

View source: R/snowbasinaverage_function.R

snow_basin_averageR Documentation

Function for returning the SBI for a specific subset of sites that you manually determine

Description

Function for returning the SBI for a specific subset of sites that you manually determine

Usage

snow_basin_average(
  sites,
  date_sbi,
  incorrect_sites = NA,
  incorrect_data = NA,
  force = FALSE,
  ask = FALSE,
  ...
)

Arguments

sites

String of site IDs that you want to calculate SBI values for

date_sbi

date of the SBI you want to retrieve ("YYYY-mm-dd")

incorrect_sites

Site ID's for manual sites with incorrect data. Defaults to NA.

incorrect_data

Corrected data for manual sites that have incorrect data. Defaults to NA.

force

Whether all of the data should be recalculated rather than retrieved from the statistics data cache. Defaults to FALSE or no.

ask

Whether to ask the user to create a data cache directory. Defaults to FALSE or no.


bcgov/bcsnowsbi documentation built on Oct. 22, 2022, 10:36 p.m.