Extract File Extension
Extract File Extension
file_extension(x, ext = NULL)
x |
path as a character vector. |
ext |
extension to append instead of the original extension. |
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')
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.