I have a dataframe named data_devoir_grp
with movies statistics and I have to find the main actor of the most expensive movie. The output must be the name of the main actor and also the budget amount of the movie. In my dataframe, there is a column 'budget' showing the cost of each movie and a column 'actor_1_name' showing the main actor's name of each movie.
This is what I already tried in order to know the most expensive movie :
aggregate(data_devoir_grp, by = list(data_devoir_grp$budget), FUN = max)
summary(budget,data = data_devoir_grp, fun = max(x))
max(data_devoir_grp$budget)
But none of this is working. Do you have any idea ?
Thank you !