Description Usage Arguments Value Examples
Function get.file.extension
determines the file extension, set.file.extension
changes it, and default.file.extension
changes it only if it is not already specified.
1 2 3 4 5 | set.file.extension(filename, extension, fsep = .Platform$file.sep)
get.file.extension(filename, fsep = .Platform$file.sep)
default.file.extension(filename, extension, force = FALSE)
|
filename |
character vector: file name(s), possibly including paths and extensions; a file name ending with a |
extension |
character string: file extension, without the dot |
fsep |
character: separator between paths |
force |
logical argument to |
character vector of same length as filename
1 2 3 4 | fnm = c("C:/TEMP.DIR/temp","C:/TEMP.DIR/tmp.txt","tempfile.")
get.file.extension(fnm)
set.file.extension(fnm,extension=".TMP")
default.file.extension(fnm,extension=".TMP")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.