Dear R-sig-geo

I have been searching for a way to convert 0s to NAN in R but have not had
any luck. I have tried the following with no luck

is.na(TC1.dte1)<-TC1.dte1<=0

TC1.dte1[is.na(TC1.dte1)]<=0

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


What I would like to do is to remove all 0s from TC1.dte1 and replace them
with NA or NANs. The 0s are a mask which I dont want to alter in subsequent
work.

My data is in a SpatialGridDataFrame and was imported into R using rgdal.

Many thanks for your help and inputs,
Wesley

-- 
Dr Wesley Roberts
jwesroberts@gmail.com
Cell: +27(0)83 5355 646
skype: roberts-w

	[[alternative HTML version deleted]]

