Examveda

What will be the output of the following R code?
> x <- c("a", "b", "c", "c", "d", "a")
> x[c(1, 3, 4)]

A. "a" "b" "c"

B. "a" "c" "c"

C. "a" "c" "b"

D. "b" "c" "b"

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