Learn R Programming

dawaR (version 0.3.0)

get_data: Get data from section

Description

Get data from section

Usage

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

Value

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

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.

See Also

Other Data functions: get_map_data()

Examples

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

Run the code above in your browser using DataLab