load_precip_from_usgs | R Documentation |
Fetches and returns precipitation timeseries from USGS web services. Timeseries is automatically aggregated to hourly timesteps.
load_precip_from_usgs(start_date, end_date = NULL, station_id = "01102500",
tz = "EST", as.type = c("dataframe", "zoo"), datetime.name = "Datetime",
value.name = "Precip")
start_date |
Start date of timeseries as string |
end_date |
End date of timeseries as string (default=NULL meaning use today's date) |
station_id |
USGS station ID as string (default="01102500" for Aberjona River) |
tz |
Timezone assigned to resulting dataframe (default="EST") |
as.type |
Return type as 'dataframe' (default) or 'zoo' |
datetime.name |
Name of datetime column (default="Datetime") |
value.name |
Name of precipitation column (default="Precip") |
dataframe or zoo object of hourly precipitation timeseries in inches/hour
pcp_usgs <- load_precip_from_usgs(start_date="2015-05-01",
end_date="2015-05-10")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.