Sum rows and adding to the next row in R

前端 未结 0 364
借酒劲吻你
借酒劲吻你 2020-12-10 06:18

I would like to sum up the rows in Col1 for which the Col2 is equal to 0. And add the sum to the next value in Col1. I show an example below. I have many products in the dat

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