Vidyalelo
R Programming · Q10

Data Structures in R Programming

Programming · R Programming · question 10

Q10

What is the correct way to access the second element of a vector named my_vector in R?

A.
my_vector(2)
B.
my_vector[2]
Answer
C.
my_vector.2
D.
my_vector[[2]]

Answer: Option B

Solution

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