Learn R Programming

altfuelr (version 0.1.0)

station_by_id: Find a Specific Alternative Fuel Station by Unique ID

Description

Find a Specific Alternative Fuel Station by Unique ID

Usage

station_by_id(api_key, station_id)

Arguments

api_key

Character. An authorized API key for the NREL API service. API keys can be requested at https://developer.nrel.gov/signup/

station_id

The unique ID of the station to find.

Value

An object of class nrel_api, containing content, parameters, and response.

Examples

Run this code
# NOT RUN {
my_stn <- station_by_id(MY_API_KEY, station_id = 150544)
stations(my_stn)
# }

Run the code above in your browser using DataLab