Description Usage Arguments Details Value See Also Examples
View source: R/file_name_ext.R
Separate file name and extension from a file path
1 2 3 4 5 | file_ext(x)
file_name(x)
file_name_ext(x)
|
x |
a character vector |
If the supplied file name has several extensions, f.ex. like
foobar.tar.bz
, only the last extension will be considered.
file_ext
returns the file extension of each file path. file_name
returns the file name, no extension, of each file path. file_name_ext
returns both name and extension, but arranged in separate columns of a matrix.
1 2 3 4 5 | x <- c("/hg/.gi.tar.gz", "ff/hg/hh.pdf", "git", ".History", ".History.log")
file_ext(x)
file_name(x)
file_name_ext(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.