Q. In R, how do you create a list named my_list with three elements: 1, "hello", and TRUE?

  • (A) my_list <- c(1, "hello", TRUE)
  • (B) my_list = list(1, "hello", TRUE)
  • (C) my_list(1, "hello", TRUE)
  • (D) list(my_list = c(1, "hello", TRUE))
πŸ’¬ Discuss
βœ… Correct Answer: (B) my_list = list(1, "hello", TRUE)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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