I have an XTS object of 20 columns with ones, negative ones and zeros. I want to construct an if condition that gives zeros after negative ones or ones reac