View source: R/file-functions.R
extract.drive | R Documentation |
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.vec and split.filename.
none
fn |
is the full path to a file such as "c:/data/catest.txt". |
drive.delimeter |
is normally ":". |
list(org=fn, drive=before, rest=after)
Claus E. Andersen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.