split.filename: Extract drive, path, file name and extensionfrom full path...

Description Usage Arguments Value Author(s)

View source: R/file-functions.R

Description

fn the full path to a single file. This function identifies the drive letter (if there is one). There is a vectorized version of this function (see link below). Three situations (1) None : No drive is given. Drive="" Rest=x (2) One : The drive is given. Drive=before Rest=after (3) Two+ : Nonsense syntax. Drive=before.last Rest=after.last See also extract.drive and extract.drive.vec.

Usage

1
none

Arguments

fn

is the full path to a file such as "c:/data/catest.txt".

Value

list(drive , path ,name, ext)

Author(s)

Claus E. Andersen


claus-e-andersen/clanTools documentation built on Oct. 23, 2020, 7:59 a.m.