import_dataset {impactr} | R Documentation |
Import datasets from accdata package
Description
A helper function to import datasets from the accdata
package.
Usage
import_dataset(data)
Arguments
data |
A character string indicating which data to load. The currently available datasets are "daily_acc_3d" and "daily_acc_7d". |
Details
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
.
Value
An object of class impactr_data
.
Examples
# 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
}
[Package impactr version 0.4.2 Index]