Re: [R-sig-Geo] Issues importing BIG shapefile - Limitations of R or something else?

2009-03-29 Thread Tyler Dean Rudolph
Subsequent to Roger's suggestion I will shortly be sending a link to a site where the shapefile in question and it's various extensions can be downloaded as a zip file. Any and all assistance with this problem are greatly appreciated. Tyler On Sat, Mar 28, 2009 at 8:04 AM, Roger Bivand wrote: >

Re: [R-sig-Geo] spgrass6 : diferent values from original

2009-03-29 Thread milton ruser
Hi Roger and colleagues, Everithing worked fine! Remembering: I am working under VISTA 64bits, running grass65 that I compiled yesterday under MSYS. I installed the alpha version of R 2.9.0. But I had several issues regarding Security on Vista. I tryed several things, like install R 2.9.0 (also

[R-sig-Geo] as.psp doesn't work for big shapefiles?

2009-03-29 Thread Adrian.Baddeley
Quentin LEMOULAND writes: > The problem is that when the shapefile is too big (all the little rivers of a > region for example: 3000), > the as.psp function doesn't return anything Under spatstat 1.15-0 and maptools 0.7-16 there is a bottleneck which causes 'as.psp.SpatialLines' to become ve

Re: [R-sig-Geo] Generate lines using start and end coordinates

2009-03-29 Thread Tyler Dean Rudolph
There is a function that does this well called psp() in the spatstat package. [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Re: [R-sig-Geo] Issues importing BIG shapefile - Limitations of R or something else?

2009-03-29 Thread Tyler Dean Rudolph
As you've indicated Roger there does appear to be an error in readShapeLines() under maptools. However I can't help but wonder why I do not have any problems using the same command sequence for a subset of the same data (even after updating my version of sp)...? With said subset I am able to impo

Re: [R-sig-Geo] help to find this function

2009-03-29 Thread baptiste auguie
try this, table(count_myData$ID) HTH, baptiste On 29 Mar 2009, at 18:28, gianni lavaredo wrote: > > > 2009/3/29 baptiste auguie > Hi, > Thanks Dott. baptiste, > > but I wish not the Sum of element but count the numeber of element > and obtain a new data.frame. Like your data.frame: myData

Re: [R-sig-Geo] help to find this function

2009-03-29 Thread gianni lavaredo
2009/3/29 baptiste auguie > Hi, > Thanks Dott. baptiste, but I wish not the Sum of element but count the numeber of element and obtain a new data.frame. Like your data.frame: myData library(library(plyr) # create a data.frame myData <- data.frame(ID=rep(c(1:4),each=4), count=abs(ceiling(rnor

Re: [R-sig-Geo] help to find this function

2009-03-29 Thread baptiste auguie
Hi, could you provide an example for the data in "sample"? (incidentally, note that sample is already the name of a built-in function) I'm guessing you could do something like, library(doBy) summaryBy(count~ID, data= count_myData, FUN=sum) tested with, count_myData <- data.frame(ID=rep

[R-sig-Geo] help to find this function

2009-03-29 Thread gianni lavaredo
Dear R user, Thanks for this sunday attention about my problem. I have a data.frame like this example: count_myData ID: 1,1,1,1,2,2,2,3,3,3,3,3,4,4,4,4,4,4 count: 4,4,4,4,3,3,3,5,5,5,5,5,6,6,6,6,6,6 this data.frame derived from this code count_myData <- ddply(sample, .(ID), transform, sum = su

Re: [R-sig-Geo] Issues importing BIG shapefile - Limitations of R or something else?

2009-03-29 Thread Roger Bivand
On Sat, 28 Mar 2009, Tyler Dean Rudolph wrote: Here are the sessionInfo() and traceback() results following the failed import. It looks like I am not using the most recent version of sp so I am trying to figure out the terms in the call to update.package() and with the most recent version I wil

Re: [R-sig-Geo] spgrass6 : diferent values from original

2009-03-29 Thread Roger Bivand
On Sun, 29 Mar 2009, milton ruser wrote: Checking the result on the readRAST6, I noticed that the number of bytes are 2, and I need 4 bits to store values greather than 32565, I suppose. -- mapa <- readRAST6(varint, cat=FALSE) Creating BIL support files... Header File = C:/Data/Tib

Re: [R-sig-Geo] spgrass6 : diferent values from original

2009-03-29 Thread milton ruser
Checking the result on the readRAST6, I noticed that the number of bytes are 2, and I need 4 bits to store values greather than 32565, I suppose. -- > mapa <- readRAST6(varint, cat=FALSE) Creating BIL support files... Header File = C:/Data/Tibagi/vegPR_probio_proatlan_abr2009/tibagi_Pro