Xử lý Dữ liệu Chuỗi Thời gian trong R
Harrison Brown
Graduate Researcher in Geography
Tần suất:
Độ phân giải thời gian:

mean, sum, max cho khoảng chọnsum theo tháng từ dữ liệu ngàymean theo tuần từ giá trị giờxts:
zoo và lớp đối tượng zooapply.*()yearly_mean <-
apply.yearly(x = maunaloa,
FUN = mean)
autoplot(yearly_mean) +
labs(...)



daily_total <-
apply.daily(hourly_sales,
FUN = sum)
weekly_max <-
apply.weekly(daily_temperature,
FUN = max)
monthly_average <-
apply.monthly(daily_price,
FUN = mean)
apply.quarterly(sales_report,
FUN = sum)
apply.yearly(monthly_salary,
FUN = sum)
xts::endpoints()
xts::period.apply()
biweekly_eps <-
endpoints(x = daily_data,
on = "weeks",
k = 2)
biweekly_data <-
period.apply(x = daily_data,
INDEX = biweekly_eps,
FUN = mean)
biweekly_data
2002-05-05 8.148611
2002-05-19 8.146776
2002-06-02 8.060020
2002-06-16 8.028224
2002-06-30 7.944792
2002-07-14 7.930159
...
Xử lý Dữ liệu Chuỗi Thời gian trong R