Learn R Programming

inpdfr (version 0.1.12)

getListFiles: List files in a specified directory sorted by extension.

Description

List files in a specified directory sorted by extension. The function takes into account .txt and .pdf files based on strsplit function.

Usage

getListFiles(mywd)

Value

A list of length 2 with file names sorted by extension (pdf and txt).

Arguments

mywd

A string containing the working directory.

Examples

Run this code
getListFiles(mywd = getwd())

Run the code above in your browser using DataLab