df_to_json_list: Convert data frame to JSON

Description Usage Arguments Value See Also Examples

View source: R/df-to-json.R

Description

Given a data frame, converts each row to a JSON blob and returns the results in a list, to make it easier to iteratively validate data with check_schema_df().

Usage

1

Arguments

df

A data frame

Value

A list of JSON blobs

See Also

check_schema

Examples

1
2
3
4
5
6
if (requireNamespace("jsonlite", quietly = TRUE)) {
dat <- data.frame(
  x = c(NA, 1L)
)
df_to_json_list(dat)
}

dccvalidator documentation built on July 2, 2020, 4:05 a.m.