Learn R Programming

nsrr (version 0.2.0)

nsrr_all_dataset_files: NSRR All Dataset files

Description

NSRR All Dataset files

Usage

nsrr_all_dataset_files(dataset, token = nsrr_token(), max_files = Inf)

Arguments

dataset

a dataset "slug", one from nsrr_datasets

token

Token for NSRR resources. Found at https://sleepdata.org/token

max_files

maximum files to return if not wanting to go through all folders recursively.

Value

A data.frame of the data sets and their endpoints

Examples

Run this code
# NOT RUN {
dataset = "shhs"
df = nsrr_all_dataset_files(dataset, max_files = 10)
testthat::expect_lte(nrow(df), 20)
# keep as donttest - takes a long time
# }
# NOT RUN {
df = nsrr_all_dataset_files(dataset)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab