πŸ“Š R Programming
Q. How do you remove a column named Income from a data frame named my_data in R?
  • (A) my_data <- my_data[, -which(names(my_data) == "Income")]
  • (B) my_data$Income <- NULL
  • (C) drop_column(my_data, "Income")
  • (D) remove_col(my_data, "Income")
πŸ’¬ Discuss
βœ… Correct Answer: (B) my_data$Income <- NULL

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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