get_local_data: Function to return flow data from a locally stored file

Description Usage Arguments Value Examples

Description

This function accepts a list of sites, start and end years and returns a data frame containing requested flow data

Usage

1
get_local_data(data_path, start_year = "", end_year = "", sep_char = ",")

Arguments

data_path

path to directory containing data files

start_year

beginning water year, will be translated to 10/01

end_year

ending water year, will be translated to 09/30

sep_char

string containing the datafile separator, default is comma

Value

dataOut data frame containing requested flow data for the stations

Examples

1
2
3
4
5
data_path <- system.file("extdata", package="NWCCompare")
data_path <- paste(data_path, "modeled", sep="/")
start_year <- "2007"
end_year <- "2010"
localData <- get_local_data(data_path,start_year=start_year,end_year=end_year)

USGS-R/NWCCompare documentation built on May 9, 2019, 6:10 p.m.