How to write code to check if elements all are equal to 1 or 4 and then extract indexes of values >= 3

前端 未结 0 1672
北海茫月
北海茫月 2020-12-10 02:24

For a given vector:

Drink_Choice <- c(NA, 3, 4, 2, 1, 2, 5, NA)

where 1-5 equals a certain drink type

1) All value

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