Learn R Programming

spant (version 3.7.0)

match_files: 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)

Value

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

Arguments

paths

vectors of filesystem paths.

glob

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