[R-sig-Geo] Aggregating census tract to county

Juta Kawalerowicz juta.kawalerowicz at nuffield.ox.ac.uk
Fri Dec 23 16:25:32 CET 2016


Maaz this depends on what you have - do you have a lookup file (csv or
else) which tells you which country does each census tract falls into? If
you do then first merge lookup file with counts in census tracts and then
use aggregate function. If you don't then you can create your own lookup
file with shapefiles with census tracts and countries by using over
function, check
https://cran.r-project.org/web/packages/sp/vignettes/over.pdf for details

Juta

On Fri, Dec 23, 2016 at 3:42 PM, Maaz Gardezi <maaz at iastate.edu> wrote:

> Hello,
>
> Can anyone tell me what's the most appropriate method to aggregate census
> tract data to the county level?
>
> Best
> Maaz
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list