parse_WQP {dataRetrieval} | R Documentation |
Convert WQP columns to correct types
Description
Takes the character results and converts to numeric and dates.
Usage
parse_WQP(retval, tz = "UTC")
Arguments
retval |
Data frame from WQP |
tz |
character to set timezone attribute of datetime. Default is UTC (properly accounting for daylight savings times based on the associated "TimeZone" column). Possible values include "America/New_York","America/Chicago", "America/Denver","America/Los_Angeles", "America/Anchorage","America/Honolulu","America/Jamaica","America/Managua", "America/Phoenix", and "America/Metlakatla" |
Value
data frame retval with converted columns
Examples
# These examples require an internet connection to run
rawSampleURL <- constructWQPURL("USGS-01594440", "01075", "", "")
## Examples take longer than 5 seconds:
rawSample <- importWQP(rawSampleURL, convertType = FALSE)
convertedSample <- parse_WQP(rawSample)
[Package dataRetrieval version 2.7.17 Index]