batch_voistat: Obtain values from voistat files (using load_voistat() for a...

Description Usage Arguments Details Value See Also Examples

View source: R/batches.R

Description

For a vector of participant IDs and correspondingly named .voistat files, this extracts the value from the files for the specified ROIs. participants can also be a vector of filenames, in which case set dir="" and filesuffix="", as in the example.

Usage

1
2
batch_voistat(participants, ROI_def, dir = "", filesuffix = ".voistat",
  varname = "VALUE")

Arguments

participants

A vector of participant IDs

ROI_def

Object that defines combined ROIs, see ROI_definitions.R

dir

Directory and/or filename prefix of the files

filesuffix

Optional filename characters between ID and ".voistat"

varname

The name of the variable being extracted, e.g. "SRTM"

Details

See load_voistat() for specifics.

Value

A table of values for the specified ROIs for all participants

See Also

Other Batch functions: batch_load, batch_tm

Examples

1
2
3
4
5
6
7
8
9
participants <- c(system.file("extdata", "AD06_BPnd_BPnd_Logan.voistat", 
                              package="tacmagic"),
                   system.file("extdata", "AD07_BPnd_BPnd_Logan.voistat", 
                               package="tacmagic"),
                   system.file("extdata", "AD08_BPnd_BPnd_Logan.voistat", 
                               package="tacmagic"))

batchtest <- batch_voistat(participants=participants, ROI_def=roi_ham_pib(), 
                           dir="", filesuffix="", varname="Logan") 

ropensci/tacmagic documentation built on Feb. 11, 2020, 9:34 p.m.