[R] Extracting values from grid cells using for loops

2013-05-19 Thread Jess Baker
Dear list, I am very new to R and have been struggling with extracting data from a netcdf file. Basically I have read in a file containing vegetation height data organised in 0.5 degree grid cells spanning the whole globe. Each cell contains a histogram representing the height distribution and

Re: [R] Extracting values from grid cells using for loops

2013-05-19 Thread David Winsemius
On May 19, 2013, at 4:20 AM, Jess Baker wrote: Dear list, I am very new to R and have been struggling with extracting data from a netcdf file. Basically I have read in a file containing vegetation height data organised in 0.5 degree grid cells spanning the whole globe. Each cell

Re: [R] Extracting values from grid cells using for loops

2013-05-19 Thread Bert Gunter
Also ?tapply But if you are a beginner who has done no homework -- i.e. you have made no effort to learn basics with The Intro to R tutorial or other online tutorial -- then you probably won't be able figure it out. We expect some minimal effort by posters. If you have done such homework, then it