getParent

0th

Percentile

Gets the string of the parent specified by this pathname

Gets the string of the parent specified by this pathname. This is basically, by default the string before the last path separator of the absolute pathname.

Keywords
programming, IO
Usage
## S3 method for class 'default':
getParent(pathname, depth=1, fsep=.Platform$file.sep, ...)
Arguments
pathname
A character string of the pathname to be checked.
depth
An integer specifying how many generations up the path should go.
fsep
A character string of the file separator.
...
Not used.
Value

Aliases
  • getParent.default
  • getParent
Documentation reproduced from package R.utils, version 1.3.3, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.