Loop over rows of dataframe applying function with if-statement

前端 未结 3 513
攒了一身酷
攒了一身酷 2020-12-13 02:16

I\'m new to R and I\'m trying to sum 2 columns of a given dataframe, if both the elements to be summed satisfy a given condition. To make things clear, what I want to do is:

3条回答
提交回复
热议问题