Q. 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]]
πŸ’¬ Discuss
βœ… Correct Answer: (B) my_vector[2]

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
249
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate