getParent
From R.utils v1.1.0
by Henrik Bengtsson
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.
Usage
## S3 method for class 'default}(pathname, depth=1, fsep=.Platform$file.sep, ...)':
getParentundefined
- 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.}
Returns a character
string if the parent exists, otherwise NULL
.
[object Object]
IO
programming
Community examples
Looks like there are no examples yet.