How to create binary variable for each individual based on value in other variable?

前端 未结 0 578
感动是毒
感动是毒 2021-01-14 19:47

So I have a data set containing of 4 individuals. Each individual is measured for different time period. In R:

df = data.frame(cbind("id"=c(1,1,1,2,         


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