Example Tabular Data Package with dummy camera trap data organized in 3 Data Resources:
deployments
: data stored indeployments.csv
.observations
: data stored inobservations_1.csv
andobservations_2.csv
, but referenced as URLs.media
: data stored indata
property.
Examples
if (FALSE) {
# example_package.rda was created with the code below.
# Note that it must be created using a URL, otherwise all Data Resource paths
# will point to local paths that won't work for other users.
# One can load locally using:
# read_package(
# system.file("extdata", "datapackage.json", package = "frictionless")
# )
example_package <- read_package(file.path(
"https://raw.githubusercontent.com/frictionlessdata/frictionless-r",
"main/inst/extdata/datapackage.json"
))
save(example_package, file = "data/example_package.rda")
}