Lp3: The Lp3 function applies the Log-Pearson Type III model to...

Description Usage Arguments Value Examples

Description

The purpose of the Lp3 function is to apply the Log-Pearson Type III model to streamflow and precipitation datasets from the National Water Census Data Portal to obtain their respective frequency distribution curves. The desired datasets are to be previously downloaded from the Portal using the 'getNWCData' function and saved in a user-named variable. The user inputs two arguments into the Lp3 function: inputData (the user-named variable) and the desired dataset ("streamflow" or "prcp"). The function singles out the desired dataset and and converts units from metric to english. The dataset is organized into water years. Next, the Log Pearson Type III model is applied to the data. The function calls in Frequency Factors from a csv. Freqency factors were taken from http://streamflow.engr.oregonstate.edu/analysis/floodfreq/skew.htm.

Usage

1
Lp3(inputData, datatype)

Arguments

inputData

data.frame stored in user-named variable, returned by getNWCData

datatype

character choose from "streamflow" and "prcp"

Value

The return variable "plotthis" is a plot of the Log-Pearson Type III model applied to the user-selected USGS hydrologic dataset.

Examples

1
2
3
4
5
## Not run: 
variable_name<-getNWCData(huc = "160202030505", local = FALSE)
Lp3(variable_name, "prcp")

## End(Not run)

NWCEd/NWCEd documentation built on May 7, 2019, 6:04 p.m.