Learn R Programming

do (version 2.0.0.1)

file.name: Extract file name

Description

Extract file name

Usage

file.name(..., extension = TRUE)

Value

file names

Arguments

...

one or more file path

extension

whether include extension, default is TRUE

Examples

Run this code
file.name('f:/dir/1.txt')
file.name('f:/dir/1.txt', 'f:/dir/1.txt')
file.name('f:/dir/1.txt', 'f:/dir/1.txt', 'f:/dir/')

Run the code above in your browser using DataLab