将分解后的数据从 R 导出到 Excel

Exporting Decomposed Data from R into Excel

我正在尝试将分解后的时间序列数据从 R 导出到 excel。有人可以帮忙吗?

您可以将数据与 do.call

合并
result <- do.call(cbind, A.modwt)

然后用write.csv写入数据

write.csv(result, 'result.csv', row.names = FALSE)

选项tidyverse

library(dplyr)
library(readr)
bind_cols(A.modwt) %>%
      write_csv(result, 'result.csv')