get_data {dawaR}R 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)
}

[Package dawaR version 0.2.7 Index]