View source: R/ch_get_wscstation.R
| ch_get_wscstation | R Documentation | 
Retrieves station information for an individual Water Survey of Canada site, based on stationID; adds a text string at position 21 that combines key elements for a title.
ch_get_wscstation(stnID, metadata = NULL)
stnID | 
 A Water Survey of Canada station number  | 
metadata | 
 a data frame of station information from ECDataExplorer. The data frame HYDAT_list is supplied with this package.  | 
Returns a line from a data frame with 21 variables
Station | 
 StationID  | 
StationName | 
 Station Name  | 
HYDStatus | 
 Active or Discontinued  | 
Prov | 
 Province  | 
Latitude | 
|
Longitude | 
|
DrainageArea | 
 Area in km  | 
Years | 
 # of years with data  | 
From | 
 Start Year  | 
To | 
 End Year  | 
Reg. | 
 Regulated or natural  | 
Flow | 
 if TRUE/Yes flow data is available  | 
Level | 
 if TRUE/Yes water level data is available  | 
Sed | 
 if TRUE/Yes sediment data is available  | 
OperSched | 
 Current operation schedule- Continuous or Seasonal  | 
RealTime | 
 if TRUE/Yes real itme data exists  | 
RHBN | 
 if TRUE/Yes is in the reference hydrologic basin network  | 
Region | 
 WSC Region  | 
Datum | 
 Datum used  | 
Operator | 
 Agency responsible for collecting data  | 
Station_lname | 
 Added field combining StationID, StationName, Province and if station is RHBN an * is added  | 
Paul Whitfield
data("HYDAT_list")
s_info <- ch_get_wscstation("05BB001", metadata = HYDAT_list)
title <- s_info[21]
print(title)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.