Description Usage Arguments Value Author(s) See Also
Takes a filename and returns the extension. This method can either be called i) as a method of a
File
object or ii) as static method. If it is called as a
static method the filename is specified by the argument filename
.
Moreover, if the filename is foo.tar.gz
and if argument
last=2
, the method returns c("tar", "gz")
.
1 | File$getExtension(filename, last=1, ...)
|
filename |
If called as a static method, this argument specifies the filename. |
last |
|
Returns a character
string.
Henrik Bengtsson (http://www.braju.com/R/)
For more information see File
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.