R: Converting data frame (mixed factor and numeric) to XTS in R?

You cannot do this as xts requires a numeric matrix.

Ah, thanks. I'll have to find a workaround. – Chris Taylor Dec 17 '10 at 14:36 To be slightly more specific: zoo/xts are a matrix plus an index attribute, and you cannot mix types in a matrix.

– Joshua Ulrich Dec 17 '10 at 14:44 Yes but this OP's error wasn't, for once, in the index type but the underlying payload, hence my comment on matrix where this error originated. – Dirk Eddelbuettel Dec 17 '10 at 15:10 My comment was to clarify, not criticize. – Joshua Ulrich Dec 17 '10 at 15:37 Understood and so was mine.

– Dirk Eddelbuettel Dec 17 '10 at 15:53.

It is a limitation by design. Keep in mind that xts or zoo is basically a matrix plus index. Not a dataframe plus index.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions