Create a new column based on several conditions

前端 未结 0 1295
死守一世寂寞
死守一世寂寞 2020-12-03 07:48

I want to create a new column based on some conditions imposed on several columns. For example, here is an example dataset:

a <- data.frame(x=c(1,0,1,0,0),         


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