package :: zoo

Published onesixx on
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)



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



xts (eXtensible Time Serise)

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


Categories: Reshaping


Blog Owner

Leave a Reply

Your email address will not be published.