Re: [R-sig-Geo] Better print method for Spatial*DataFrames?

2010-05-29 Thread Roger Bivand
On Fri, 28 May 2010, Barry Rowlingson wrote: On Fri, May 28, 2010 at 5:18 PM, Roger Bivand roger.biv...@nhh.no wrote: On Fri, 28 May 2010, Etienne Bellemare Racine wrote: I taught I could add my two cents. Nice suggestion! I agree ! No. Only for SpatialPointDataFrame objects, which is

Re: [R-sig-Geo] Better print method for Spatial*DataFrames?

2010-05-29 Thread Barry Rowlingson
On Sat, May 29, 2010 at 10:06 AM, Roger Bivand roger.biv...@nhh.no wrote: In other software systems (octave, Stata, ...), one can turn on and off a more/less screen-by-screen displayer (not scrolling upwards, just chunking), but I'm not aware of an equivalent in R/S. I'm not sure how head()

Re: [R-sig-Geo] Better print method for Spatial*DataFrames?

2010-05-29 Thread Roger Bivand
On Sat, 29 May 2010, Barry Rowlingson wrote: On Sat, May 29, 2010 at 10:06 AM, Roger Bivand roger.biv...@nhh.no wrote: In other software systems (octave, Stata, ...), one can turn on and off a more/less screen-by-screen displayer (not scrolling upwards, just chunking), but I'm not aware of

Re: [R-sig-Geo] Better print method for Spatial*DataFrames?

2010-05-29 Thread Peter Larson
Hello, I am attempting to use the sample code in Applied Spatial Data Analysis with R but cannot get this to work and get this error: nc = readShapePoly(system.file(shapes/sids.shp, package=maptools)[1], + IDvar=FIPSNO, proj4string=CRS(+proj=longlat +ellps=clrk66)) 以下にエラー read.dbf(filen) :

Re: [R-sig-Geo] Better print method for Spatial*DataFrames?

2010-05-29 Thread Roger Bivand
On Sat, 29 May 2010, Peter Larson wrote: Hello, I am attempting to use the sample code in Applied Spatial Data Analysis with R but cannot get this to work and get this error: nc = readShapePoly(system.file(shapes/sids.shp, package=maptools)[1], + IDvar=FIPSNO, proj4string=CRS(+proj=longlat

Re: [R-sig-Geo] Better print method for Spatial*DataFrames?

2010-05-29 Thread Edzer Pebesma
On 05/29/2010 11:47 AM, Roger Bivand wrote: On Sat, 29 May 2010, Barry Rowlingson wrote: On Sat, May 29, 2010 at 10:06 AM, Roger Bivand roger.biv...@nhh.no wrote: In other software systems (octave, Stata, ...), one can turn on and off a more/less screen-by-screen displayer (not

Re: [R-sig-Geo] Better print method for Spatial*DataFrames?

2010-05-28 Thread Etienne Bellemare Racine
I taught I could add my two cents. Nice suggestion! I agree ! options(width=60) print(meuse[1:3,], sWKT=T) I don't know what's sWKT, but the folowing output is the kind of printing I would like by default. Sometimes I make the mistake of printing a spatial polygon data frame and it can

Re: [R-sig-Geo] Better print method for Spatial*DataFrames?

2010-05-28 Thread Roger Bivand
On Fri, 28 May 2010, Etienne Bellemare Racine wrote: I taught I could add my two cents. Nice suggestion! I agree ! No. Only for SpatialPointDataFrame objects, which is what it does already. Please, understand that str() is a *much* better choice in effectively all cases where summary()

Re: [R-sig-Geo] Better print method for Spatial*DataFrames?

2010-05-28 Thread Barry Rowlingson
On Fri, May 28, 2010 at 5:18 PM, Roger Bivand roger.biv...@nhh.no wrote: On Fri, 28 May 2010, Etienne Bellemare Racine wrote: I taught I could add my two cents. Nice suggestion! I agree ! No. Only for SpatialPointDataFrame objects, which is what it does already. Please, understand that

Re: [R-sig-Geo] Better print method for Spatial*DataFrames?

2010-05-27 Thread Edzer Pebesma
Nice suggestion! I did this for points (committed to cvs), as option in print, and get options(width=60) print(meuse[1:3,], sWKT=T) geometry cadmium copper lead zinc elev 1 POINT(333611 181072)11.7 85 299 1022 7.909 2 POINT(333558 181025) 8.6 81 277 1141 6.983 3

[R-sig-Geo] Better print method for Spatial*DataFrames?

2010-05-18 Thread Barry Rowlingson
Currently if I print a spatial polygon data frame I get the list representation, which almost always scrolls way of the screen as giant lists of lists of coordinates whizz past. It's nearly always useless and luckily ESS lets me C-c C-o and zap the output. For SpatialPointsDF you get: