The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

openesm: Access openESM datasets in R

R-CMD-check Codecov test coverage

The openesm package provides programmatic access to the openESM database, a collection of harmonized Experience Sampling Method (ESM) datasets (openesmdata.org). It enables researchers to discover, download, and work with ESM data while ensuring proper citation and license compliance.

Installation

Install the released version from CRAN:

install.packages("openesm")

Or install the development version from GitHub:

# install.packages("devtools")
devtools::install_github("openesm-project/openesm-r")

Usage

Discover datasets

library(openesm)

# List all available datasets
datasets <- list_datasets()
print(datasets)

# View specific dataset information
datasets[1, ]

Download data

# Download a single dataset
data <- get_dataset("0001")

# Access the data
head(data$data)

# View metadata
data$metadata

# Download multiple datasets
multiple_data <- get_dataset(c("0001", "0002"))

Citation and licensing

# Get citation information
cite(data)

# Additional notes
notes(data)

Cache management

# View cache information
cache_info()

# Clear cache
clear_cache()

Dataset Structure

Each dataset is returned as an S3 object containing:

Data Citation

When using datasets from the openESM database, please cite the original publication(s) for a specific dataset. The cite() function provides properly formatted citations for both.

License

This package is licensed under the MIT License. Individual datasets may have different licenses - check the metadata for each dataset.

Contributing

Please report bugs and request features at https://github.com/openesm-project/openesm-r/issues.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.