Hi,
I think you can work in the following steps:
1. Read map data as a kind of SpatialDataFrame;
2. Extract the attributes via function data.frame()
3. Add the expected attribute data to this Data Frame
4. Replace its attribute data with the new DataFrame (See how to creat a
SpatialDataFrame)

Hope it helps

2010/11/27 lu <lufile@126.com>

> Hello,
>  I have import map data (county) into R and the fields of  its data are
> code, name. Now I want to add attribute data to the map. The fields of the
> attribute data are code,var1,var2,var3,var4,var5,var6,var7 . How can I add
> the attribute data to the map according to the code fields ?Thanks!
>        [[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
>

	[[alternative HTML version deleted]]

