Load local water quality file for Fecal Indicator Bacteria (FIB)
Source:R/read_importfib.R
read_importfib.Rd
Load local water quality file for Fecal Indicator Bacteria (FIB)
Usage
read_importfib(xlsx, download_latest = FALSE, na = c("", "NULL"), all = TRUE)
Arguments
- xlsx
chr string path for local excel file, to overwrite if not current
- download_latest
logical passed to
read_dlcurrent
to download raw data and compare with existing inxlsx
if available- na
chr vector of strings to interpret as
NA
, passed toread_xlsx
- all
logical indicating if all stations with FIB data are returned, default is
TRUE
, see details
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.
Returns FIB data including E. coli, Enterococcus, Fecal Coliform, and Total Coliform concentrations and waterbody class (freshwater as 1 or 3F, marine as 2 or 3M) for stations and sample dates, function is used internally within read_importfib
Values are returned for E. coli (ecoli
), Enterococcus (entero
), Fecal Coliform (fcolif
), and Total Coliform (totcol
). Values shown are # of colonies per 100 mL of water (#/100mL
). Qualifier columns for each are also returned with the _q
suffix. Qualifier codes can be interpreted from the source spreadsheet.
Concentrations noted with <
or >
in the raw data are reported as is, with only the numeric value shown. Samples with this notation can be determined from the qualifier columns.
If all = FALSE
, only stations with AreaName in the source data as Hillsborough River, Hillsborough River Tributary, Alafia River, Alafia River Tributary, Lake Thonotosassa, Lake Thonotosassa Tributary, and Lake Roberta.