Loop through several columns to create a new Variable

前端 未结 0 1527
感情败类
感情败类 2020-11-30 19:10

I want to create a new variable 0/1 if a condition is met in any of 15 columns.

So if comorbidity=10 in any of the columns (comorbidity1 to comorbidity15) then assign

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