[R] Replacing cretin value in a file
Jonsson
amen.alyaari at Bordeaux.inra.fr
Sun May 13 13:52:53 CEST 2012
Dear All,
I am trying to replace a value of 528.8933 to -9999 in my file
t<- file("C:\\Users\\Amin\\Desktop\\1999n_Resample11.img", "rb")
e=readBin(t, double(), size=4,n=720*360, signed=TRUE)
e[e != -9999] <- e[e != -9999]*0.0099 + 477.65 -273.15
##worked well and values heve been calculated
e[e == 528.8933] <- -9999 ## no changes made to
528.8933
any suggestions please
--
View this message in context: http://r.789695.n4.nabble.com/Replacing-cretin-value-in-a-file-tp4629840.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list