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
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
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
, 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,
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 +