[R-sig-Geo] selecting n smallest values from a Raster

Marcio Pupin Mello mello at ieee.org
Mon Nov 11 14:05:40 CET 2013


Dear list,
	I have a RasterLayer (raster package) and want to select "n" smallest 
values from it (values and coordinates). I figured out that the 
which.min function in the raster package give me the coordinate of the 
smallest value. But how could I get the 10 smallest values?
	I'm using last version of R for Windows and all the packages.
	Thanks in advance,
-- 
Marcio
www.dsr.inpe.br/~mello



More information about the R-sig-Geo mailing list