> char_vector[c(TRUE, FALSE, FALSE)] [1] "blue" # We specify which value is true, # i.e. the value we want R to return (the first one) # which corresponds to "blue".