Examveda

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

A. x[0:4]

B. x[1:4]

C. x[0:3]

D. x[4:3]

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