json_to_df: Convert json to data_frame. Extract data from json file...

Description Usage Arguments Details Value Examples

Description

Convert json to data_frame. Extract data from json file downloaded from Estonian Health Statistics and Health Research database

Usage

1
json_to_df(json, tidy = FALSE)

Arguments

json

A path to json file or json string, a character string.

tidy

Logical. Return data in wide or long (tidy) format, see Details. Defaults to FALSE.

Details

Returns data in the wide format by default because retrieved data can contain data intermingled with summary data. When table is large, it might be more convenient and efficient to identify and remove rows with summary variables before converting table into long format.

Value

Returns data_frame in the long format.

Examples

1
2
path_to_PK10.json <- system.file("extdata", "PK10.json", package = "boulder", mustWork = TRUE)
pk10 <- json_to_df(path_to_PK10.json)

tpall/boulder documentation built on May 6, 2019, 11:47 a.m.