stations: Import station information

View source: R/stations.R

stationsR Documentation

Import station information

Description

This function imports weather station information from ClimateAnalyzer.org into R.

Usage

stations(station_name = NULL, station_id = NULL, id = NULL)

Arguments

station_name

A string of the station name. This is used to reduce the data frame using filter. Default is NULL.

station_id

A string of the station_id. This is used to reduce the data frame using filter. Default is NULL.

id

A string of the station id. This is used to reduce the data frame using filter. Default is NULL.

Value

A tibble.

Examples

library(climateAnalyzeR)

# Import all information for all stations.
stations()

# Import station inforation using the name of the station
stations(station_name = "Black Canyon of the Gunnison")

# Import information for multiple stations using station_id
stations(station_id = c("blue_mesa_lake", "black_canyon_of_the_gunnison"))

# Import information for multiple stations using id numbers
stations(id = c(50754, 50797))


scoyoc/climateAnalyzeR documentation built on April 19, 2023, 9:57 p.m.