...and ?mget for retrieving multiple objects as a list. /Henrik
On Thu, Jun 9, 2011 at 10:32 PM, Henrik Bengtsson h...@biostat.ucsf.edu wrote:
See ?get and ?do.call. That should be enough.
?Reduce may be an alternative for do.call(), but could also be less
memory efficient.
My $.02
On 10/06/11 14:57, Ben Zaitchik wrote:
Hello,
I have a large number of raster objects in memory, with names RH100,
RH101, RH102, etc. (myobjects - ls(pattern='^RH')).
These rasters are sections of a continuous map, and I would like to
combine them using the RasterObject merge tool in package
Thank you Henrik and Rolf. My migraine just disappeared. : )
myobjects = ls(pattern='^RH')
dataobj = mget(myTemp,.GlobalEnv)
map = Reduce(merge,dataobj)
did the trick. do.call() didn't cut it for some reason . . . it
returned an 'x' is missing error. But Reduce works quite nicely for
Hello,
I have a large number of raster objects in memory, with names RH100,
RH101, RH102, etc. (myobjects - ls(pattern='^RH')).
These rasters are sections of a continuous map, and I would like to
combine them using the RasterObject merge tool in package 'raster.'
Merge expects an input list
See ?get and ?do.call. That should be enough.
?Reduce may be an alternative for do.call(), but could also be less
memory efficient.
My $.02
/Henrik
On Thu, Jun 9, 2011 at 7:57 PM, Ben Zaitchik zaitc...@jhu.edu wrote:
Hello,
I have a large number of raster objects in memory, with names
5 matches
Mail list logo