Tuesday, February 28, 2012

Changing the filename extension in R

Filenames ending with *.bin or *.txt will be given the extension *.grd. Applies to a character array containing multiple strings

outFileName = gsub("\\.bin|\\.txt", ".grd", inFileName)

No comments:

Post a Comment