Skip to contents

Get the latest measurements by locations_id.

Usage

list_location_latest(
  locations_id,
  datetime_min = NULL,
  limit = NULL,
  page = NULL,
  as_data_frame = TRUE,
  dry_run = FALSE,
  rate_limit = FALSE,
  api_key = NULL
)

Arguments

locations_id

An integer.

datetime_min

A string.

limit

An integer.

page

An integer.

as_data_frame

A logical for toggling whether to return results as data frame or list defaults to TRUE.

dry_run

A logical for toggling a dry run of the request, defaults to FALSE.

rate_limit

A logical for toggling automatic rate limiting based on rate limit headers, defaults to FALSE.

api_key

A valid OpenAQ API key string, defaults to NULL.

Value

A data frame or a list of the results.

Examples

if (FALSE) { # \dontrun{
measurements <- list_location_latest(2178)
} # }