match_files: Match files based on a vector of input paths and a glob...

View source: R/utils.R

match_filesR Documentation

Match files based on a vector of input paths and a glob pattern. The glob pattern is appended to each path and should match one file only.

Description

Match files based on a vector of input paths and a glob pattern. The glob pattern is appended to each path and should match one file only.

Usage

match_files(paths, glob)

Arguments

paths

vectors of filesystem paths.

glob

pattern to append to each path before passing to Sys.glob.

Value

matched files. NA values correspond to either no match or multiple matches.


spant documentation built on Nov. 20, 2025, 5:06 p.m.