[R-sig-Geo] get() in raster ?
Robert J. Hijmans
r.hijmans at gmail.com
Fri Nov 19 21:00:44 CET 2010
This suggest that you have an object "r1" that is a Raster* object.
Perhaps because of a saved session?
Have you looked at
ls()
Robert
On Fri, Nov 19, 2010 at 1:24 PM, Agustin Lobo <alobolistas at gmail.com> wrote:
> Hi again!
>
> I'm having problems because cannot use get() from base once package
> raster has been installed:
>
>> v = c("r1","r2","r3")
>> v
> [1] "r1" "r2" "r3"
>> get(v)
> Loading required package: raster
> Loading required package: sp
> raster version 1.6-22 (17-November-2010)
> class : RasterLayer
> nrow : 18
> ncol : 36
> ncell : 648
> projection : +proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0
> xmin : -180
> xmax : 180
> ymin : -90
> ymax : 90
> xres : 10
> yres : 10
>
> Even not having loaded raster, it gets automatically loaded once I
> call get(). Is this a bug?
> In general, is there a way to force that, in case of conflict, you run
> a particular function from a given package?
>
> Thanks!
>
> Agus
>
More information about the R-sig-Geo
mailing list