How can you handle missing values in a dataset in R?

  • na.rm = TRUE
  • removeNA()
  • na.omit()
  • deleteNA()
The correct option is na.omit(). This function is used to handle missing values in a dataset by omitting (removing) rows with missing values. Options like na.rm = TRUE are used in specific functions to handle missing values within those functions, but they are not standalone functions for handling missing data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *