sjld: Get subjects list from subjects.txt file in dir.

View source: R/seg_stats.R

sjldR Documentation

Get subjects list from subjects.txt file in dir.

Description

Get subjects list from subjects.txt file in dir.

Usage

sjld(subjects_dir)

Arguments

subjects_dir

character string, existing subjects dir with a subjects.txt file containing one subject per line and no header line.

Value

named list with entries: 'd', the query subjects_dir (repeated from the parameter), 'l', vector of character strings, the subjects_list read from the file, 'f', the subjects_file.

Note

This function stops if the file does not exist or cannot be read.


dfsp-spirit/nitools documentation built on Jan. 26, 2024, 8:24 p.m.