find files in BIDS tree by matching file names

search_files(x, ...)

# S3 method for bids_project
search_files(
  x,
  regex = ".*",
  full_path = FALSE,
  strict = TRUE,
  new = FALSE,
  ...
)

Arguments

x

the bids_project object

...

additional keys to match on (e.g. subid = "01", task="wm")

regex

a regular expression to match files

full_path

return full_path of files

strict

if TRUE require that a queried key must exist in match files. Otherwise, allow matches for files missing queried key.

Examples

proj <- bids_project(system.file("extdata/ds001", package="bidser"), fmriprep=FALSE) x = search_files(proj, regex="events")