Q23
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
AnswerC.
drop_column(my_data, "Income")
D.
remove_col(my_data, "Income")
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board