Re: [R-sig-Geo] Bug in rasterToPoints() ?

2010-07-21 Thread Agustin Lobo
Thanks! Agus 2010/7/20 Robert J. Hijmans [via R-sig-geo] : > Thanks Agus, I fixed this in raster version 1.3-0. Robert > > On Mon, Jul 19, 2010 at 11:46 PM, Agustin Lobo <[hidden email]> wrote: >> >> While >> test <-rasterToPoints(Br025,fun=function(x){x>0},asSpatialPoints=T) >> does not work, th

Re: [R-sig-Geo] Bug in rasterToPoints() ?

2010-07-20 Thread Robert J. Hijmans
Thanks Agus, I fixed this in raster version 1.3-0. Robert On Mon, Jul 19, 2010 at 11:46 PM, Agustin Lobo wrote: > > While > test <-rasterToPoints(Br025,fun=function(x){x>0},asSpatialPoints=T) > does not work, the following works: >> test <-rasterToPoints(Br025,fun=function(x){x>0},asSpatialPoints

Re: [R-sig-Geo] Bug in rasterToPoints() ?

2010-07-19 Thread Agustin Lobo
While test <-rasterToPoints(Br025,fun=function(x){x>0},asSpatialPoints=T) does not work, the following works: > test <-rasterToPoints(Br025,fun=function(x){x>0},asSpatialPoints=F) > test <- as.data.frame(test) > coordinates(test) <- c("x","y") > class(test) [1] "SpatialPointsDataFrame" attr(,"pac

Re: [R-sig-Geo] Bug in rasterToPoints() ?

2010-07-14 Thread Jacob van Etten
, 14/7/10, Agustin Lobo wrote: From: Agustin Lobo Subject: [R-sig-Geo] Bug in rasterToPoints() ? To: "r-sig-geo" Date: Wednesday, 14 July, 2010, 20:46 Hi! I'm trying: > Br025SpPoints <- rasterToPoints(Br025,fun=function(x){x>0},asSpatialPoints=T) Error in projection(x,

[R-sig-Geo] Bug in rasterToPoints() ?

2010-07-14 Thread Agustin Lobo
Hi! I'm trying: > Br025SpPoints <- rasterToPoints(Br025,fun=function(x){x>0},asSpatialPoints=T) Error in projection(x, asText = FALSE) : cannot use this x of class NULL Calls: rasterToPoints ... SpatialPoints -> new -> initialize -> initialize -> projection > projection(Br025) [1] "+proj=longlat +