Back
In R programming, we use the mean() function to calculate the average of the values given in a dataset. We just have to give the name of the dataset, along with the row or the column, in the mean() function. It will return the average of all the values present for the specified column.
If you are looking for an online course to learn R programming, check out this R Programming Online Course by Intellipaat.
31k questions
32.8k answers
501 comments
693 users