f {LMERConvenienceFunctions} | R Documentation |
List files and directories in current directory.
Description
List files and directories in current directory in matrix format. Each row is preceded by a row number.
Usage
f(path = ".", pattern = NULL, all.files = FALSE,
full.names = FALSE, recursive = FALSE, ignore.case = FALSE)
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. |
all.files |
Logical. If |
full.names |
Logical. If |
recursive |
Logical. Should the listing recurse into directories? |
ignore.case |
Logical. Should pattern-matching be case-insensitive? |
Value
A matrix containing the names of the files and directories, preceded by a row number, in the specified directories. If a path does not exist or is not a directory or is unreadable it is skipped, with a warning.
The files are sorted in alphabetical order, on the full path if full.names = TRUE
. Directories are included only if recursive = FALSE
.
Note
File naming conventions are platform dependent. recursive = TRUE
is not supported on all platforms and may be ignored (with a warning).
Author(s)
Antoine Tremblay, Statistics Canada, trea26@gmail.com
See Also
Examples
f()