将 x 向上舍入以使其可被 m 整除的最简单方法是什么?
例如,
if x = 114, m =4, then the round up should be 116
Run Code Online (Sandbox Code Playgroud)
或者
if x = 119, m=5, then the round up should be 120
Run Code Online (Sandbox Code Playgroud) 我想将季节性成分重新组合到季节性调整的组分中,以便通过stl分解时间序列.例如:
library(fpp)
fit <- stl(elecequip, s.window=7)
plot(fit)
sa_fit <- seasadj(fit)
Run Code Online (Sandbox Code Playgroud)
如何将季节性组件与sa_fit结合起来以便返回原始季节性数据?
提前致谢.
我目前正在自学R,我想知道记录笔记的最佳方法是什么.我目前正在使用不太好的Microsoft Word.理想情况下,如果软件具有以下功能,那就太棒了:
有没有可以做到的软件?此外,自学R时有哪些提示和最佳实践?
提前致谢.