I'm generating 8 individual vectors of 18 random numbers, and I want to color-code all the numbers under 11 red and everything else can stay black.
trial1 <- sample(0:99, 18, repeat = TRUE)
performed 8 times, changing the trial number each time.
if (trial1<=11) {
print(col ="red")
} else {
print(col = "black")
but this throws an error message and I don't know where I messed up. I'm trying to display all 18 numbers as either red or black. Is this possible, and how do I do it?