Khánh Đoan
New member
Which of the following extracts first element from the following R vector?
A. x[10]
B. x[1]
C. x[0]
D. x[2]
Code:
> x <- c("a", "b", "c", "c", "d", "a")
B. x[1]
C. x[0]
D. x[2]