[R] help with xts
Pete
freerisk3 at gmail.com
Sun May 18 16:25:56 CEST 2014
I have 3 xts objects: test, cond1, cond2
You can download here:
https://dl.dropboxusercontent.com/u/102669/obj.rar
My problem is very simple.
test [ cond1 < cond2] = NA THIS WORKS
test [ cond1 < cond2] = -test [ cond1 < cond2] THIS DOESN'T WORKS
Why?
My objective is to substitute all values in test (when cond1 < cond2) with
the corresponding values of test but with negative sign
More information about the R-help
mailing list