wqmonthtable | R Documentation |
This function extracts selected parameters for selected months from the MNPCA water quality data. If multiple months are selected, the function will average each parameter across the selected months.
wqmonthtable(wqdata, parameters, months, startyear = NULL, endyear = NULL)
wqdata |
a water quality data.frame downloaded using the wqdatadownload() function. |
parameters |
a character vector of the parameters to be extracted from the data. |
months |
a numeric vector of the months to be extracted from the data. |
startyear |
a numeric of the earliest year under consideration in the YYYY format. Default is NULL. |
endyear |
a numeric of the latest year under consideration in the YYYY format. Default is NULL. |
A data.frame
Other Water Quality:
wqdatadownload()
,
wqmonthtrendplots()
,
wqmonthtrendstats()
,
wqparameters()
,
wqstations()
#Download the data
x <- wqdatadownload(c("15-0010-00-100","15-0010-00-101","15-0010-00-102"))
#Process a single parameter for a single month
y <- wqmonthtable(
wqdata = x,
parameters = "Depth, Secchi disk depth",
months = 6
)
#Process multiple parameters across multiple months within a given year range
y <- wqmonthtable(
wqdata = x,
parameters = c("Depth, Secchi disk depth","Temperature, water","pH"),
months = c(7,8,9),
startyear = 2008,
endyear = 2018
)
#Process all parameters above a specific sample size across a specified time period
y <- wqmonthtable(
wqdata = x,
parameters = wqparameters(x,minsample = 5),
months = c(6,7,8,9),
startyear = 2008
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.