Skip to contents

Read a scans.tsv file for a subject

Usage

read_scans_tsv(x, subid, session = NULL, ...)

# S3 method for class 'bids_project'
read_scans_tsv(x, subid, session = NULL, ...)

Arguments

x

A bids_project object.

subid

Subject ID (without sub- prefix).

session

Optional session ID (without ses- prefix).

...

Additional arguments passed to methods.

Value

A bids_scans_tsv object inheriting from tbl_df, or NULL.

Examples

# \donttest{
tryCatch({
  ds001_path <- get_example_bids_dataset("ds001")
  proj <- bids_project(ds001_path)
  scans <- read_scans_tsv(proj, subid = "01")
  unlink(ds001_path, recursive = TRUE)
}, error = function(e) message("Example requires internet: ", e$message))
#> No scans.tsv found for sub-01
# }