Displaying 1 result from an estimated 1 matches for "cor206".
Did you mean:
cor20
2013 Mar 04
1
How to loop several binary files from two directories?
...`corr`. I want to replace values in `over`
by `NA` whenever `corr` is greater than 0.5.
to read the two files we can use:
conne <- file("C:corr.bin","rb")
over <- readBin(conne, numeric(), size=4, n=1440*720, signed=TRUE)
frf <- file("C:cor206.bin","rb")
corr <- readBin(frf, numeric(), size=4, n=1440*720, signed=TRUE)
to replace values in `over` by `NA` whenever `corr` is greater than 0.5:
over[corr > 0.4] = NA
to write the results:
to....