View source: R/write_camtrapdp.R
write_camtrapdp | R Documentation |
Writes a Camera Trap Data Package and its related Data Resources to disk as a
datapackage.json
and CSV files.
write_camtrapdp(x, directory, ...)
x |
Camera Trap Data Package object, as returned by |
directory |
Path to local directory to write files to. |
... |
Further arguments, passed to |
datapackage.json
and CSV files written to disk.
x <- example_dataset()
# Filter (and therefore change) the dataset
x <- filter_deployments(x, deploymentID == "00a2c20d")
# Write the Camera Trap Data Package to disk
write_camtrapdp(x, directory = "my_directory")
# Check files
list.files("my_directory")
# Clean up (don't do this if you want to keep your files)
unlink("my_directory", recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.