3 年間のデータがある場合:
データ = (x1:x1096)
この方法で平均を計算したい:
[x1+x366(the first day in the second year)+ x731(the first day in the third year)]/3
[x2+x367(the second day in the second year)+ x732(the second day in the third year)]/3
365 日まで続く:
[x365+x730(the last day in the second year)+ x1096(the last day in the third year)]/3
最後に私はそこ365 values
から抜け出します。
dat= c(1:1096)
これを行う方法について何か考えはありますか?