How would I write the following in R? -
"red", "red", "red", "green", "green", "blue" i have tried using rep, etc can 1 colors.
use
repand/orc, twice @ most, each max of 2 arguments.
rep(c("red", "green", "blue"), c(3, 2, 1)) "red", "red", "red", "green", "green", "blue" i have tried using rep, etc can 1 colors.
use
repand/orc, twice @ most, each max of 2 arguments.
rep(c("red", "green", "blue"), c(3, 2, 1))
Comments
Post a Comment