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

后端 未结 2 1218
既然无缘
既然无缘 2021-01-03 07:25

When converting a data frame with mixed factor and numeric columns to an xts, all of my data gets converted to strings. This isn\'t a problem with the factors, but it\'s ext

相关标签:
2条回答
  • 2021-01-03 08:02

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

    0 讨论(0)
  • 2021-01-03 08:05

    You cannot do this as xts requires a numeric matrix.

    0 讨论(0)
提交回复
热议问题