download_studentlife: download_studentlife

Description Usage Arguments Details Examples

View source: R/SL_tbl_load.R

Description

Download the entire StudentLife dataset or a smaller sample dataset for testing.

Usage

1
2
3
4
5
6
download_studentlife(
  url = "dartmouth",
  location = ".",
  unzip = TRUE,
  untar = TRUE
)

Arguments

url

A character string. Either "rdata" for the URL to the (more efficient) RData format version hosted on Zenodo, or "dartmouth" for the (original) Dartmouth URL, or "testdata" for a small sample dataset. Otherwise a full URL of your choice can be specified leading to the StudentLife dataset as a .tar.gz file.

location

The destination path. If the path does not exist it is created with dir.create

unzip

Logical. If TRUE then the dataset will be unzipped with bunzip2. Leave as default unless you plan to do it manually.

untar

Logical. If TRUE then the dataset will be untarred with untar. Leave as default unless you plan to do it manually.

Details

If url = "rdata" then data will be downloaded from <https://zenodo.org/record/3529253> If url = "dartmouth" then data will be downloaded from <https://studentlife.cs.dartmouth.edu/dataset/dataset.tar.bz2> If url = "testdata" then data will be downloaded from the test data at the studentlife GitHub repository <https://github.com/frycast/studentlife>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
d <- tempdir()
download_studentlife(location = d, url = "testdata")

## Not run: 
## With menu
load_SL_tibble(location = d)

## End(Not run)

## Without menu
SL_tables
load_SL_tibble(schema = "EMA", table = "PAM", location = d)

studentlife documentation built on Nov. 1, 2020, 9:07 a.m.