Extracts the unique task names found in the mock project's file structure. Note: Returns names without the "task-" prefix.
Usage
# S3 method for class 'mock_bids_project'
tasks(x, ...)
Examples
# Create a mock project with tasks
parts <- data.frame(participant_id = "01")
fs <- data.frame(subid="01", task="taskA", run="01", datatype="func",
suffix="bold.nii.gz", fmriprep=FALSE)
fs <- rbind(fs, data.frame(subid="01", task="taskB", run="01", datatype="func",
suffix="bold.nii.gz", fmriprep=FALSE))
mock_proj <- create_mock_bids("TaskMock", parts, fs)
# Get task names
tasks(mock_proj)
#> [1] "taskA" "taskB"