Randomly separate one column into two groups based on ID in R

前端 未结 0 1623
伪装坚强ぢ
伪装坚强ぢ 2021-01-06 11:18

I have a data frame that looks like this. For each ID, I want to randomly assign subjects into two groups with relatively equal subjects, and I also want to add a new column

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