In R, assign numeric variable according to segments of another variable?

后端 未结 0 953
北荒
北荒 2021-01-21 05:42

Some simple sample data:

test <- c(rep(\'B\', 10), rep(\'A\', 7), rep(\'C\', 10), rep(\'A\', 3))

#1] "B" "B" "B"

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