R/station_ids.R

Defines functions station_ids

Documented in station_ids

#' List of stations identification numbers from UK NRFA
#'
#' @author Claudia Vitolo
#'
#' @description This function pulls the list of station identification numbers.
#'
#' @return vector integer identification numbers (one for each station)
#'
#' @export
#'
#' @examples
#' \dontrun{
#'   # Retrieve all the stations ids
#'   x <- station_ids()
#' }
#'

station_ids <- function() {

  parameters <- list(format = "json-object")

  response <- nrfa_api(webservice = "station-ids", parameters)

  return(unlist(response$content, use.names = FALSE))

}

Try the rnrfa package in your browser

Any scripts or data that you put into this service are public.

rnrfa documentation built on Sept. 8, 2022, 5:07 p.m.