Many thanks Etienne  for your replay.

Ivan

2012/11/12 Etienne B. Racine <etiennebr@gmail.com>

> Ivan, perhaps that's what you are looking for ?
>
> library(raster)
> r <- raster(matrix(1:5, 100, 100))
>
> # subset it just like a matrix when dealing with values
> r[r != 5] <- NA
> plot(r)
>
> Etienne
>
>
> 2012/11/12 Luis Iván Ortiz Valencia <liov2067@gmail.com>
>
>> Hi R community
>>
>> Is it possible to subset a raster using crop  function with a raster
>> value?
>> That is, I want to extract a subraster which have a predetermined value
>> from a raster.
>>
>>
>> many thanks.
>>
>> Ivan
>>
>>         [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>
>


-- 
Luis Iván Ortiz Valencia
Doutorando Saúde Pública - Epidemiologia, IESC, UFRJ
Estatístico Msc.
Spatial Analyst Msc.

	[[alternative HTML version deleted]]

