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

Anna Cord anna.cord at gmx.de
Tue Apr 12 09:56:02 CEST 2011


Many thanks for the hint, Robert!

s<- raster::resample(r, s, method='bilinear')
works absolutely fine.

Anna



Am 4/12/2011 9:22 AM, schrieb Robert Hijmans:
>> 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.
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



More information about the R-sig-Geo mailing list