Vidyalelo
R Programming · Q34

Data Structures in R Programming

Programming · R Programming · question 34

Q34

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]
Answer
C.
x[0:3]
D.
x[4:3]

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board