how can I calculate mean of every 6 rows in a data frame based on the condition of other column?

前端 未结 0 1321
遥遥无期
遥遥无期 2021-01-11 12:58

I have a dataframe in R, contain 3000 rows and 2 columns (temp, flag), I am trying to calculate "meantemp" as the third column for every 6 rows if the correspondi

相关标签:
回答
  • 消灭零回复
提交回复
热议问题