View source: R/read_importwq.R
read_importwq | R Documentation |
Load local water quality file
read_importwq(xlsx, download_latest = FALSE, na = c("", "NULL"), all = FALSE)
xlsx |
chr string path for local excel file, to overwrite if not current |
download_latest |
logical passed to |
na |
chr vector of strings to interpret as |
all |
logical indicating if all water quality parameters are returned, see details |
Loads the "RWMDataSpreadsheet" worksheet from the file located at xlsx
. The file is downloaded from https://epcbocc.sharepoint.com/:x:/s/Share/EYXZ5t16UlFGk1rzIU91VogBa8U37lh8z_Hftf2KJISSHg?e=8r1SUL&download=1. The files can be viewed at https://epcbocc.sharepoint.com/:f:/s/Share/EiypSSYdsEFCi84Sv_6-t7kBUYaXiIqN0B1n2w57Z_V3kQ?e=NdZQcU.
Water quality parameters returned by default are total nitrogen (tn
), Secchi depth (sd
), chlorophyll-a (chla
), salinity (top, mid, and bottom depths, Sal_
prefix), water temperature (top, mid, and bottom depths, Temp_Water_
prefix), turbidity (Turbidity_JTU-NTU
), and water color (Color_345_F45
). Additional qualifier columns for each that include the _Q
suffix are also returned, excluding salinity and water temperature. All other water quality parameters and qualifiers can be returned by setting all = T
.
A data.frame
of formatted water quality data.
read_formwq
, read_importphyto
## Not run:
# file path
xlsx <- '~/Desktop/RWMDataSpreadsheet_ThroughCurrentReportMonth.xlsx'
# load and assign to object
epcdata <- read_importwq(xlsx, download_latest = T)
# get all water quality parameters
epcdataall <- read_importwq(xlsx, download_latest = T, all = T)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.