Skip to content

converting 0 to NAN in SpatialGridDataFrame

7 messages · Lionel, Etienne B. Racine, Wesley Roberts

#
Dear Wesley,

You can access the data components of a SpatialGridDataFrame using 
@data, and then classic data frame operation can be done , in your 
example this would be:

TC1.dte1 at data[TC1.dte1 at data==0]<-NA

Hope this help,
Lionel

Le 05/02/2013 16:15, Wesley Roberts a ?crit :
1 day later