Mean BMI with R and dplyr

Hi,

I have a data set that consists of age, heights, weights and sports. How do you compute the mean BMI of the sports variable using dplyr and R? I need to store the top 5 results in a new object.

Thank you for you help :slight_smile:

Hi!

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:

1 Like

Here's part of the data set

That is not a sample of the data set it's a screenshot of it, please read the link I gave you before, and try to make a proper reproducible example.

2 Likes

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.