Description Usage Arguments Details Value See Also Examples
The result is the same as for basename
,
and this function is only included here for completeness.
1 | path_basename(path)
|
path |
Character vector of paths. |
Note that this is different from the Python os.path.basename
function, Python always returns a file name or an empty string,
i.e. os.path.basename('/foo/bar/')
is ''
. In R
path_basename("/foo/bar/")
is "bar"
.
Character vector of base names.
1 | path_basename(c("/foo/bar", "/foo/bar/", ".", "foo/bar.c"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.