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
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
...and ?mget for retrieving multiple objects as a list. /Henrik
On Thu, Jun 9, 2011 at 10:32 PM, Henrik Bengtsson 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
>
> /Henrik
>
> On Thu
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 wrote:
> Hello,
>
> I have a large number of raster objects in memory, with names RH100, RH101,
> RH
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
5 matches
Mail list logo