Retrieve the paths of data files within a given directory, optionally matching a pattern.

getDataFilesPaths(dir, pattern = "*.csv", full.names = TRUE)

Arguments

dir

A character string representing the directory to search within.

pattern

A character string representing the pattern to match. Default is "*.csv".

full.names

A logical value indicating whether to return full names of the files. Default is TRUE.

Value

A character vector of file paths matching the pattern.