get_files: Get files and filenames

Usage Arguments

Usage

1
get_files(studypath, extensions, ...)

Arguments

studypath

The main folder path for a BIDS dataset.

extensions

A vector of file extensions, e.g. c(".nii.gz", ".nii")

...

Other conditions to filter the dataset on, such as sub, ses, task, acq, rec, run, modality. Note that these arguments are passed to dplyr::filter, so they are evaluated. Thus they should be inputted as such. e.g. sub

Tibble containing the relevant file information Query the data files from a BIDS folder subList <- c("01", "03") get_files(studypath, extensions=c('.nii', '.nii.gz'), sub %in% subList, modality=="T1w")


mathesong/rbids documentation built on May 14, 2019, 4:04 a.m.