package :: zoo

Published by onesixx on

https://www.datacamp.com/courses/manipulating-time-series-data-in-r-with-xts-zoo
Welcome Manipulating Time Series Data in R with xts & zoo
Introduction R tutorial: xts & zoo for time series analysis
R tutorial: Importing, exporting and converting time series

 

for time series analysis

 

zoo :: na.locf

 

자료 중간에 시간이 점프한 곳을 ‘0’으로 채움

function(x_df) {
    x_df <- na.locf(x_df)
    return(x_df)
})

 

 

na.locf(x, sec, na.rm=F, fromLast=F)

 

 

xts (eXtensible Time Serise)

https://www.youtube.com/watch?v=qXShXRdYofo

  • subclass of zoo
  • extended zoo object
  • Matix + index  =>  Obs. + Times

 

Categories: Reshaping

onesixx

Blog Owner

Subscribe
Notify of
guest

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