psmsl.stations: Generates a list of active and historic PSMSL stations

Description Usage Arguments Details Value See Also Examples

View source: R/psmsl_stations.R

Description

Generates a list of active and historic tide stations hosted by the Permanent Service for Mean Sea Level (http://www.psmsl.org)

Usage

1
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 stn

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

psmsl

Examples

1
2
3
4
5
6
7
## 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)

troyhill/VulnToolkit documentation built on Aug. 10, 2021, 10:55 a.m.