search for: _amenlast

Displaying 1 result from an estimated 1 matches for "_amenlast".

Did you mean: 7_amenlast
2013 Feb 14
0
How write raster files after manipulation?
...me, size = 4) } Error in as.double(results[[i]]) : cannot coerce type 'S4' to vector of type 'double' 3) for(i in 1:length(results)){ fileName <- strsplit(results[i],split='\\.')[[1]][1] outputFile <- paste(fileName,'_amenlast','.envi',sep='') rf <- writeRaster(results, filename=outputFile, overwrite=TRUE) } Error in strsplit(results[i], split = "\\.") : non-character argument to write the results: Any ideas? -- View this message in context: http://r....