package :: zoo
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