listFiles: List files with a specific extension in a folder/directory

View source: R/listFiles.R

listFilesR Documentation

List files with a specific extension in a folder/directory

Description

This returns a vector with all file names with the ext extension in the path folder/directory. In RfishBC this is used primarily to create a list of image file names for use in digitizeRadii or RData file names created with digitizeRadii and to be given to combineData.

Usage

listFiles(ext, other = NULL, path = ".", ignore.case = TRUE, ...)

Arguments

ext

A single string that contains the file extension pattern to match.

other

Other strings to match in file names that were already matched by the extension in ext.

path

A single string that contains the full path name for the folder/directory for which to list files. Defaults to the current working directory (see getwd result).

ignore.case

A logical for whether pattern matching should be case sensitive (=FALSE) or not (TRUE; DEFAULT).

...

Parameters to be given to list.files.

Details

An example of using this function is in this vignette and this vignette on the RFishBC website.

Value

Character vector.

Author(s)

Derek H. Ogle, derek@derekogle.com

See Also

digitizeRadii and combineData; and list.files in base R.

Examples

## See the link to the extensive documentation in the Details.


RFishBC documentation built on Aug. 29, 2023, 9:06 a.m.

Related to listFiles in RFishBC...