psmsl.stations {VulnToolkit} | R Documentation |
Generates a list of active and historic PSMSL stations
Description
Generates a list of active and historic tide stations hosted by the Permanent Service for Mean Sea Level (http://www.psmsl.org)
Usage
psmsl.stations(type = "RLR", country = "all", sort.by = "country")
Arguments
type |
data quality class; can be 'metric' or 'RLR' - see http://www.psmsl.org for documentation |
country |
if desired, the full list of stations can be filtered by up to three alphabetical characters. Specific country codes can be entered ("USA"), or abbreviated codes in case the user isn't sure of the country code ("U"; "US"). Upper case and lower case codes are both acceptable. Default is 'all' stations. |
sort.by |
the criterion for sorting the final dataframe. By default,
output is sorted alphabetically by country code. Any column name can be used
for sorting: 'name', 'id', 'lat', 'long', 'country', 'date',
'coastline', or |
Details
A data.frame
containing all Permanent Service for Mean Sea Level
stations meeting country code criterion. Data frame is sorted by the column
specified in argument sort.by
Value
A data.frame
containing all Permanent Service for Mean Sea Level
stations meeting country code criterion. Data frame is sorted by the column specified
in argument sort.by
See Also
Examples
## Not run:
# examples require internet connection
stn.df <- psmsl.stations()
stn.df2 <- psmsl.stations(country = "USA", sort.by = "date")
stn.df3 <- psmsl.stations(type = "metric")
## End(Not run)