Which dplyr function is used to summarize data, like calculating the mean of a column?

  • stat()
  • summarise()
  • summarize()
  • summary()
In dplyr, the correct function for summarizing data, such as calculating the mean of a column, is summarize(). The alternative spelling summarise() is also accepted. summary() is a base R function used for statistical summaries, and stat() is not a valid function in this context.
Add your answer
Loading...

Leave a comment

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