[R-sig-Geo] Applied Spatial Data Analysis
Fernando Miguez
miguez at illinois.edu
Wed May 13 15:08:12 CEST 2009
Sorry, my mistake. This works
data(meuse.riv)
meuse.lst <- list(Polygons(list(Polygon(meuse.riv)),"meuse.riv"))
Fernando Miguez wrote:
> Dear All,
>
> Sorry, by mistake I replied to the last message, but this is unrelated.
>
> I hope this is a good place to post this. I'm working through the book
> "Applied Spatial Data Analysis with R" and on pg 59 the following code
> results in an error
>
> > data(meuse.riv)
> > meuse.lst <- list(Polygons(list(Polygon(meuse.riv))),"meuse.riv")
> Error in Polygons(list(Polygon(meuse.riv))) : Single ID required
>
> > sessionInfo()
> R version 2.9.0 (2009-04-17)
> x86_64-pc-linux-gnu
>
> locale:
> LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C
>
>
> attached base packages:
> [1] graphics grDevices utils datasets stats methods base
>
> other attached packages:
> [1] sp_0.9-32 mmisc_0.1-1 Hmisc_3.4-3 BioCro_0.250-5
> [5] lattice_0.17-22
>
> loaded via a namespace (and not attached):
> [1] cluster_1.11.13 grid_2.9.0 tools_2.9.0
>
> I didn't see anything in the Errata section for the book webpage about
> this.
>
> Best wishes,
>
> Fernando
>
>
>
--
Fernando E. Miguez
Energy Biosciences Institute
https://netfiles.uiuc.edu/miguez/www/
More information about the R-sig-Geo
mailing list