[R-sig-Geo] spRbind() limited to 2 objects?

Agustin Lobo Agustin.Lobo at ija.csic.es
Sun Nov 4 17:36:28 CET 2007


Is spRbind() limited to 2 objects? It seems so but this
detail is not mentioned in the doc. Note:

> class(pols.ferns1)
[1] "SpatialPolygonsDataFrame"
attr(,"package")
[1] "sp"
> class(pols.ferns2)
[1] "SpatialPolygonsDataFrame"
attr(,"package")
[1] "sp"
> class(pols.ferns3)
[1] "SpatialPolygonsDataFrame"
attr(,"package")
[1] "sp"
> class(spRbind(pols.ferns2,pols.ferns3))
[1] "SpatialPolygonsDataFrame"
attr(,"package")
[1] "sp"
> class(spRbind(pols.ferns1,pols.ferns3))
[1] "SpatialPolygonsDataFrame"
attr(,"package")
[1] "sp"
> class(spRbind(pols.ferns1,pols.ferns2,pols.ferns3))
Error in spRbind(pols.ferns1, pols.ferns2, pols.ferns3) :
   unused argument(s) (<S4 object of class "SpatialPolygonsDataFrame">)
> class(spRbind(spRbind(pols.ferns1,pols.ferns2),pols.ferns3))
[1] "SpatialPolygonsDataFrame"
attr(,"package")
[1] "sp"

Thanks!

Agus

-- 
Dr. Agustin Lobo
Institut de Ciencies de la Terra "Jaume Almera" (CSIC)
LLuis Sole Sabaris s/n
08028 Barcelona
Spain
Tel. 34 934095410
Fax. 34 934110012
email: Agustin.Lobo at ija.csic.es
http://www.ija.csic.es/gt/obster




More information about the R-sig-Geo mailing list