Answers for "Given vector <- rep(c(1,2,3), each=2). What is the value of vector[c(1,2,3)] ?"

R
2

rep in r

rep(1, length.out = 5)
# 1 1 1 1 1
Posted by: Guest on September-04-2020

Browse Popular Code Answers by Language