sum the values of a vector based on unsorted values of another vector in dataframe based on increasing and decreasing values in it

后端 未结 0 585
刺人心
刺人心 2021-02-02 16:51

I have a larger dataset but this will also do to help me out. What i want to do is sum the values of y based on whether the values of x increases on decreases.

x<-c(1,

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