Nested for loop doesn't run in R

前端 未结 0 913
误落风尘
误落风尘 2020-12-10 00:15

I have a dataset where all variables are binary (0,1). I want to keep a given value as 1 only if all the other subsequent values in its row are also 1.

To demonstrate

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