For eg. I have a vector of different colors,
x = c("blue", "green", "red", "yellow", "green")
I want to find the indices of the elements with value = "green"
, which in this case would be 2 and 5.
For eg. I have a vector of different colors,
x = c("blue", "green", "red", "yellow", "green")
I want to find the indices of the elements with value = "green"
, which in this case would be 2 and 5.