**Genre IMDB Score**
1 Action 7.9
2 Adventure 7.9
3 Fantasy 7.9
4 Sci-Fi 7.9
5 Action 7.1
6 Adventure 7.1
7 Fantasy 7.1
8 Action 6.8
9 Adventure 6.8
10 Thriller 6.8
11 Action 8.5
12 Thriller 8.5
13 Action 6.6
...
I have some data from a movie dataset as shown above with 2 columns - 'Genre' and 'IMDB Score'. There are 24 unique genres and 1,000s of rows, each with a different IMDB score attached to them. In the end, I want a dataframe with 24 rows, each row a genre and each genre attached with the mean IMDB score for that genre i.e.
**Genre IMDB Score**
1 Action mean IMDB score for 'action'
2 Adventure mean IMDB score for 'adventure'
3 Fantasy mean IMDB score for 'fantasy'
...
How would I go about coding this?
I'm really new at R, so am not at all sure how to do this.