list_files: list.files with full.names=TRUE & recursive=TRUE

View source: R/io.R

list_filesR Documentation

list.files with full.names=TRUE & recursive=TRUE

Description

list.files with full.names=TRUE & recursive=TRUE

Usage

list_files(path, pattern = NULL, full.names = TRUE, recursive = TRUE, ...)

Arguments

path

a character vector of full path names; the default corresponds to the working directory,

pattern

an optional regular expression. Only file names which match the regular expression will be returned.

full.names

a logical value. If TRUE, the directory path is prepended to the file names to give a relative file path. If FALSE, the file names (rather than paths) are returned

recursive

logical. Should the listing recurse into directories?

Value

A character vector containing the names of the files in the specified directories


leylabmpi/LeyLabRMisc documentation built on Nov. 3, 2022, 3:45 p.m.