[R-sig-Geo] resample{raster}: Error "invalid 'y' type in 'x || y'"

Robert Hijmans r.hijmans at gmail.com
Tue Apr 12 09:22:45 CEST 2011


>I am trying to resample a raster layer to another raster layer (dieffernt
resolution, different extent) using >the "resample" function as implemented
in the "raster" package. 
> (...)
>Interestingly, the same happens when using the example as provided in the
package description: 
> (...)
> s <- resample(r, s, method='bilinear') 
> Error in resample(r, s, method = "bilinear") : 
>   unused argument(s) (method = "bilinear") 

Anna,

This suggests that you have loaded another package that also has a function
called resample and that hides the function in 'raster'. 

This will probably work:

s <- raster::resample(r, s, method='bilinear') 

Robert



--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/resample-raster-Error-invalid-y-type-in-x-y-tp6262164p6264101.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list