Timeline for How to Find the Average Raster Value of an area defined by a shapefile using R?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 28, 2018 at 13:52 | comment | added | cmbarbu | to get r.mean added correctly to sdata I had to first unlist r.mean: r.mean <- unlist(lapply(r.vals, FUN=mean)) | |
Mar 10, 2016 at 13:11 | comment | added | four-eyes |
If I have a multipolygonfile: How does the data.frame(sdata@data, m2012=r.mean) know whch polygon to assign which value to?
|
|
Sep 15, 2014 at 18:28 | history | edited | Jeffrey Evans | CC BY-SA 3.0 |
Corrected code block
|
Jul 10, 2012 at 12:03 | vote | accept | nickves | ||
Jul 10, 2012 at 4:10 | comment | added | Simbamangu | +1 - excellent solution, well laid out and complete answer. | |
Jul 9, 2012 at 20:06 | history | answered | Jeffrey Evans | CC BY-SA 3.0 |