read_Statvar: read_Statvar

Description Usage Arguments Details Value See Also Examples

View source: R/read_Statvar.R

Description

Function to read the statvar file output by PRMS

Usage

1
read_Statvar(file, NAval = -999)

Arguments

file

Character, pathname to statvar file

NAval

Integer, value of missing data in statvar/data file (usually -999)

Details

Variables and index numbers of the statvar file are determined by the user in the PRMS control file prior to simulation. This function reads the statvar header with variables and index number, and outputs a dataframe with column titles corresponding to the statvar elements

Value

A dataframe containing the statvar output with proper column titles

See Also

calc_WYstats,

Examples

1
exampleData <- read_Statvar(file = "data/rghw_Daymet.statvar")

cpenn-usgs/prmsTools documentation built on May 6, 2019, 9:49 p.m.