Description Usage Arguments Details Value Author(s) See Also Examples
Finds and removes any common extension from a vector of file names.
1 | removeExt(x, sep=".")
|
x |
character vector |
sep |
character string that separates the body of each character string from the extension. |
This function is used for simplifying file names, or any vector of character strings, when the strings all finish with the same suffix or extension.
If the same extension is not shared by every element of x
, then it is not removed from any element.
Note that sep
is interpreted as a literal character string: it is not a regular expression.
A character vector of the same length as x
in which any common extension has been stripped off.
Gordon Smyth
An overview of LIMMA functions for reading data is given in 03.ReadingData.
1 2 3 4 5 |
[1] "slide1" "slide2" "slide3"
[1] "Harry" "Hermione"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.