All combinations picking one by group

后端 未结 0 1396
你的背包
你的背包 2021-01-07 21:46

Given are a group indicator variable and some values within groups:

group = rep(c(1,2), each = 3)
val   = letters[1:6]

cbind(group, val)

     group val
[1,]         


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