Learn R Programming

hydroToolkit (version 0.1.0)

swe_to_precip: Snow water equivalent to snowfall

Description

Converts a snow water equivalent series (from snow pillow) to a snowfall series.

Usage

swe_to_precip(df)

Arguments

df

data frame with 'swe' series in the second column. See 'read_XXX' functions.

Value

Data frame containing the numeric vector with inferred snowfall.

Examples

Run this code
# NOT RUN {
# Relative path to raw data
full_path <- system.file('extdata', package = "hydroToolkit")

# Read swe sheet
toscas_swe <- read_DGI(file = 'Toscas.xlsx', sheet = 'swe',
                colName = 'swe(mm)', path = full_path)

# swe to snowfall
toscas_snfall <- swe_to_precip(df = toscas_swe)    

# }

Run the code above in your browser using DataLab