Examveda
Examveda

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]

C. my_vector.2

D. my_vector[[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