
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.
batch_voistat(
participants,
ROI_def,
dir = "",
filesuffix = ".voistat",
varname = "VALUE"
)
A vector of participant IDs
Object that defines combined ROIs, see ROI_definitions.R
Directory and/or filename prefix of the files
Optional filename characters between ID and ".voistat"
The name of the variable being extracted, e.g. "SRTM"
A table of values for the specified ROIs for all participants
See load_voistat() for specifics.
Other Batch functions:
batch_load()
,
batch_tm()
# NOT RUN {
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")
# }
Run the code above in your browser using DataLab