jabr_fetch: Fetch dataset

Description Usage Arguments Value Examples

View source: R/jabr_fetch.R

Description

Download and parse the dataset available at Open Data Jawa Barat into R.

Usage

1
jabr_fetch(id, keep_title = TRUE, as = "table")

Arguments

id

The character id of dataset. It accepts single id or multiple ids. Non-matched id(s) will be ignored.

keep_title

Whether to keep the dataset title in result. If the result is a table, the title is saved in "title" column. If the result is a list, the title is saved as list name.

as

Applicable for multiple id. If as = "table", the fetched datasets will be saved in "dataset" column with list-column type where you can run tidyr::unnest() afterwards. Otherwise the fetched datasets will be saved as list.

Value

A tibble or list of tibble.

Examples

1
2
3
4
5
6
7
8
library(jabr)

(x <- jabr_list_dataset())


# for example, we want to fetch data about number of application available in west java.
# The id of this data is "3a51a670".
jabr_fetch("3a51a670")

aswansyahputra/jabr documentation built on Dec. 27, 2019, 2:20 a.m.