Examveda

Which of the following extracts first element from the following R vector?
> x <- c("a", "b", "c", "c", "d", "a")

A. x[10]

B. x[1]

C. x[0]

D. x[2]

Answer: Option B


This Question Belongs to R Programming >> Data Structures In R Programming

Join The Discussion

Related Questions on Data Structures in R Programming