Hi, there,
I put a shapefile c2 under rw1091\library\maptools\shapes and run the following sample codes and it works well to produce a map. However, when I tried to use data(c2),
it reports: Warning message: Data set 'c2' not found in: data(c2) 
How can I solve it?
(Actually c2 is a copy of columbus data).
> try2 <- read.shape(system.file("shapes/c2.shp", package="maptools")[1])
Shapefile Type: Polygon   # of Shapes: 49 
> mappolys <- Map2poly(try2, as.character(try2$att.data$NEIGNO), raw=FALSE)
> data(c2)
Warning message: 
Data set 'c2' not found in: data(c2) 


__________________________________________________



	[[alternative HTML version deleted]]


