The ______ function in R can be used to calculate the modes in a categorical variable.

  • mode()
  • levels()
  • frequencies()
  • unique()
The levels() function in R can be used to calculate the modes in a categorical variable. It returns the distinct levels present in the variable, which can be further analyzed to identify the modes based on their frequencies.
Add your answer
Loading...

Leave a comment

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