filext | R Documentation |
Extract the extension of a file
filext(fn)
fn |
Character vector with the files whose extensions are to be extracted. |
This function extracts the extension of a vector of file names.
A character vector of extension names.
Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/
## For a single item:
filext("Albert Einstein.jpg")
## You can do the same for a vector:
filext(c("Hillary Duff.png", "Britney Spears.jpg", "Avril Lavigne.tiff"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.