Re: [R] Sorting values within a raster

2011-04-21 Thread David Winsemius
On Apr 21, 2011, at 9:33 PM, Sara Maxwell wrote: Hi David et al, Thanks for your help. I spent the afternoon and thought that would work but then I realized it was giving a different answer. I have counts ('hits') in each grid cell, and have then calculated the proportion of the total hi

Re: [R] Sorting values within a raster

2011-04-21 Thread Sara Maxwell
Hi David et al, Thanks for your help. I spent the afternoon and thought that would work but then I realized it was giving a different answer. I have counts ('hits') in each grid cell, and have then calculated the proportion of the total hits represented in each cell (such that the sum of

Re: [R] Sorting values within a raster

2011-04-21 Thread David Winsemius
On Apr 21, 2011, at 3:23 PM, Sara Maxwell wrote: I am working with a raster and want to take values assigned to each cell and sort them from largest to smallest, then cummulatively sum them together (in order from largest to smallest). I'll then be coding the individual cells such that th