Helper function to package API results as a tibble
Examples
m <- dataset_metadata(title = "Motor Trend Car Road Tests",
name = "mtcars",
notes = "The data was extracted from the 1974 Motor Trend
US magazine, and comprises fuel consumption and 10 aspects
of automobile design and performance for 32 automobiles
(1973–74 models).",
owner_org = "americas", ## becarefull- all lower case!!!
visibility = "public",
geographies = "UNSPECIFIED",
external_access_level = "open_access",
data_collector = "Motor Trend",
keywords = keywords[c("Environment", "Other")],
unit_of_measurement = "car",
data_collection_technique = "oth",
archived = "False")
m1 <- dataset_tibblify(m)
m1
#> # A tibble: 1 × 12
#> title name notes owner_org visibility external_access_level data_collector
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr>
#> 1 Motor T… mtca… "The… americas public open_access Motor Trend
#> # ℹ 5 more variables: keywords <list>, unit_of_measurement <chr>,
#> # geographies <chr>, data_collection_technique <chr>, archived <chr>