πŸ“Š R Programming
Q. In R, how do you add a new column named Height to a data frame named my_data?
  • (A) my_data$Height <- c(160, 170, 155)
  • (B) add_column(my_data, "Height", c(160, 170, 155))
  • (C) my_data[,"Height"] <- c(160, 170, 155)
  • (D) append_column(my_data, "Height", c(160, 170, 155))
πŸ’¬ Discuss
βœ… Correct Answer: (A) my_data$Height <- c(160, 170, 155)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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