import_dataset | R Documentation |
A helper function to import datasets from the accdata
package.
import_dataset(data)
data |
A character string indicating which data to load. The currently available datasets are "daily_acc_3d" and "daily_acc_7d". |
To import these datasets you need to install the accdata
package. It can be installed by running install_accdata()
. The
datasets documentation can be accessed by ?accdata::`dataset_name`
(e.g., ?accdata::daily_acc_3d
.
An object of class impactr_data
.
# Ensure that {accdata} package is available before running the example. # If it is not, run install_accdata() to install the required package. if (requireNamespace("accdata", quietly = TRUE)) { data <- import_dataset("daily_acc_3d") data }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.