change as.xts in case of only logical and numeric columns