Dear list,

I can manually write a raster file(*.img) format to *.rst using this code:
library(raster)
myraster <- raster("1982001.img")
rstraster <- writeRaster(myraster, filename="1982001.rst", format="IDRISI",
overwrite=TRUE)

I have bunch of img files located in one folder. How could I convert all
those files to rst in one go?

Thanks in advance

	[[alternative HTML version deleted]]

