setFileType | R Documentation |
Create a new file or object name from an old name with an optional new suffix.
setFileType(filename, type = "tmp", replace = FALSE)
filename |
a single character string of the name of the file or object. |
type |
character string identifying the new suffix. |
replace |
logical ( |
A character string like filename
but with a new suffix.
This function is designed as a support function for many functions.
Dave Lorenz, original coding by Jim Slack, U.S. Geological Survey retired.
# Replace the .dat suffix with .txt setFileType("TestName.dat", "txt", replace=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.