Learn R Programming

omnibus (version 1.2.15)

listFiles: Replacement for list.files()

Description

This function is a slightly friendlier version of list.files in that it automatically includes the full.names=TRUE argument.

Usage

listFiles(x, ...)

Value

Character.

Arguments

x

Path name of folder containing files to list.

...

Arguments to pass to list.files (other than full.names).

See Also

Examples

Run this code
# list files in location where R is installed
listFiles(R.home())
listFiles(R.home(), pattern='README')

Run the code above in your browser using DataLab