Description Usage Arguments Author(s) References See Also Examples
Gets the path of a directorie's parent directory.
Argument up
controls how many levels to go up relative
to the initial directory.
1 | getParentDirectory(path, up = 1, ...)
|
path |
Signature argument. Object containing path information. |
up |
|
... |
Further arguments to be passed to subsequent functions/methods. |
Janko Thyson janko.thyson@rappster.de
https://github.com/Rappster/filesystr
getParentDirectory,
getParentDirectory-character-method
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
path <- c(getwd(), R.home())
getParentDirectory(path = path)
getParentDirectory(path = path, up = 2)
getParentDirectory(path = path, up = 3)
getParentDirectory(path = path, up = c(1,4))
path <- "c:/Windows"
getParentDirectory(path = path, up = 2)
try(getParentDirectory(path = path, up = 3))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.