Learn R Programming

NOAAWeather (version 0.1.0)

getAllLocations: Get All locations of NOAA Weather Stations

Description

get all locations information using API call

Usage

getAllLocations(online = TRUE, state = NA)

Arguments

online

if TRUE location data is pulled from the API, if FALSE, data is pulled from offiline database

state

filter the final output based on the state code specified, deafault to all US states

Value

Dataframe with Location ID, Location name and State

Examples

Run this code
# NOT RUN {
locations <- getAllLocations (online=FALSE,state="CA")
# }

Run the code above in your browser using DataLab