[R] question about pairs observations

Bruno Grimaldo Martinho Churatae bruno at est.ufpr.br
Fri Sep 15 20:18:07 CEST 2006


Hi,

I would like to paired ID_ with Cod for analysis in spdep.
Any ideas?

> head(bai$att.data)
            ID_       NAME1_ NAME2_ PARTS_ POINTS_  LENGTH_     AREA_
1 410690205001 410690205001   <NA>      1     158 5.243338 1.2668820
2 410690205009 410690205009   <NA>      1     159 6.071286 1.8409600
3 410690205026 410690205026   <NA>      1     108 3.955380 0.8876151
4 410690205027 410690205027   <NA>      1     251 6.747801 2.2430790
5 410690205041 410690205041   <NA>      1     243 7.314878 2.3123150
6 410690205042 410690205042   <NA>      1     269 5.405646 1.4390610

> head(att.data)
            Cod            bairro alunos resid
1 410690205050         Abranches     33 11165
2 410690205014               Ahu     58 11148
3 410690205064    Alto Boqueirao     36 51155
4 410690205004   Alto da Glo>ria     23  5588
5 410690205005    Alto da Rua XV     48  8683
6 410690205055             Atuba     11 12632

Thanks!

------------------------------------
Bruno G. M. Churata



More information about the R-help mailing list