[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-sig-geo
Subject:    [R-sig-Geo] Extract attributes from spatial polygons dataframe to another spatial polygons dataframe
From:       Katharine Walter <katharine.walter () yale ! edu>
Date:       2014-09-25 1:23:35
Message-ID: CACAXSaWSEWJoONkNP+_yz=gGOLdYYVpC66d37x-HcGKVmTeftQ () mail ! gmail ! com
[Download RAW message or body]

Hi,

I would like to extract attributes from one spatial polygons dataframe to
another.

Specifically, I have a spatial polygons dataframe representing data
collected for towns and I would like to extract data into another overlaid
spatial polygon dataframe (a regular grid).  The dataframe is
complex--several variables are measured for several years for each town.
Ideally, what I would like to do do is weight the variables measured at the
town-level by the proportion of the town's area in each grid cell so that I
can find a total for the grid cell in question.  I have looked through the
offerings for spatial polygon dataframes, but have not found any tool for
this.

Is the best way to do this to create a RasterStack for each variable of
interest which includes a RasterLayer for each year of interest and then
use extract(town, grid, weight=T) over each variable/year in questions?  Or
is there a way to do this if the data is represented as a STFDF or a
spatial polygons dataframe?

Thank you for your help!

	[[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic