UPDATED QUESTION :
In a loop, I would like to choose a color for each occurrence without ever having the same twice
myvec <- c("green","blue","red","orange","dark","white")
for (i in (1:6)) {
mycolor <- sample(myvec,1,replace=F)
print(mycolor)
}
# Return
[1] "dark"
[1] "blue"
[1] "red"
[1] "red"
[1] "blue"
[1] "blue"