Change element of vector
examples/vectors/change_element_of_vector.R
colors = c("red", "blue", "green") colors # "red", "blue", "green" colors[1] # red colors[1] = "purple" colors # "purple", "blue", "green"
colors = c("red", "blue", "green") colors # "red", "blue", "green" colors[1] # red colors[1] = "purple" colors # "purple", "blue", "green"