prepWQPData | R Documentation |
This function reads dataframes downloaded from EPA's WQP, removes duplicates, and converts result values and detection limit values with non-numeric characters to NA (with the exception of those with <|>|,). Converts all non-result value columns in nr, activity, detquantlim, and sites objects to character, including dates. Replaces hard coding in bookdown and readWQPFiles function.
prepWQPData(irdata, char_check = TRUE)
irdata |
A list of WQP dataframes containing sites, narrowresult, activity, and detquantlim objects. |
char_check |
Logical. If TRUE, the function produces a .csv showing all the special characters changed or converted to NA. |
A list consisting of nr, activity, detquantlim, sites, filtered sites, and merged_results (nr combined with activity) dataframes with special characters converted to NA for the ResultMeasureValue column. Saves an rdata file named "irdata_prepped.Rdata" containing the six data WQP objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.