Hello all,
I want to compare the results of two methods for the selection of the background data “buffer” and “minimum convex polygon (MCP)”. I use for the buffer the “raster” library and the “adehabitatHR” library for "MCP". The problem is I got this error message :
library(raster)
library(adehabitatHR)
library(adehabitatMA)
r <- raster(ncol=36,nrow=18)
values(r) <- NA r[500] <- 1
b <- buffer(r, 500000)
c<- buffer(r, width=500000)
I got two errors :
1/ If I use "width" argument (buffer(r, width=500000)), I get : Error in buffer(r, width = 5e+05) : unused argument (width = 5e+05)
2/ and if I use buffer(r, 500000) I get this error : Error in buffer(r, 5e+05) : x should inherit the class SpatialPixels
How can I overcome this problem ?
Thank you in advance
Regards
--
You received this message because you are subscribed to the Google Groups "Maxent" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maxent+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/maxent/ac3b50c6-d569-4f3c-a52b-62fdfe7b7ff7n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/maxent/ed437c77-2557-42ed-b170-a385d63c0402n%40googlegroups.com.