xts

Published by onesixx on

xts Converting

https://statkclee.github.io/finance/finance-ts-xts.html

data.table –> xts

as.xts.data.table() 첫번째 컬럼이 Date나 POSIXct 여야한다.

R
https://stackoverflow.com/questions/21487272/create-xts-index-with-both-date-time
R
https://stackoverflow.com/questions/21487272/create-xts-index-with-both-date-time

반대로 as.data.table.xts()로 as.data.table(x, keep.rownames = TRUE, key=NULL, …) 을 사용

data.frame –> xts

R
https://stackoverflow.com/questions/21487272/create-xts-index-with-both-date-time

matrix –> xts

R
https://stackoverflow.com/questions/21487272/create-xts-index-with-both-date-time

ts –> xts

R
https://stackoverflow.com/questions/21487272/create-xts-index-with-both-date-time

csv –> data.tble –> xts

R
https://stackoverflow.com/questions/21487272/create-xts-index-with-both-date-time

ex> data.table

R
https://stackoverflow.com/questions/21487272/create-xts-index-with-both-date-time
Categories: ts

onesixx

Blog Owner

guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x