Load a list of subjects from a subjects file, i.e., a simple text file containing one subject name per line.
read.md.subjects(subjects_file, header = FALSE)
string. The path to the file.
logical. Whether the file starts with a header line. Defaults to FALSE.
a vector of strings. The subject IDs.
Other metdata functions: read.md.demographics
read.md.demographics
# NOT RUN { subjects_file = system.file("extdata", "subjects.txt", package = "fsbrain", mustWork = TRUE); subjects_list = read.md.subjects(subjects_file); # }
Run the code above in your browser using DataCamp Workspace