file_extension | R Documentation |
Extract File Extension
file_extension(x, ext = NULL)
x |
path as a character vector. |
ext |
extension to append instead of the original extension. |
a character vector.
file_extension('alpha.txt')
file_extension(paste('aa.tt', 1:5, sep=''))
# change extension
file_extension(paste('aa.tt', 1:5, sep=''), 'pdf')
file_extension(paste('aatt', 1:5, sep=''), 'pdf')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.