get_data: Get data from section

View source: R/get_data.R

get_dataR Documentation

Get data from section

Description

Get data from section

Usage

get_data(section, as_list = FALSE, ...)

Arguments

section

Defines what section of the api should be called. available_sections() exposes all options for this parameter.

as_list

Whether or not to return the data as a list or in a dataframe. Data.frame is the default output.

...

<dynamic-dots> input query parameters.

Value

Returns either a dataframe with all the data for the specified section or a list with the same information.

See Also

Other Data functions: get_map_data()

Examples

if (connection_check()) {
  x <- get_data("regioner")
  head(x)
}

dawaR documentation built on April 3, 2025, 10:35 p.m.