We use cookies essential for this site to function well. Please click to help
us improve its usefulness with additional cookies. Learn about our use of cookies in our Privacy Policy.
I have a csv file “bollywood.csv” bollywood.csv (3.5 KB)
Problem statement :
# # Write a command to find the names of the movies which have the maximum Ocollection, Wcollection, Fwcollecion & Tcollection #you should get 4 names .Store them in a data frame and show on which category they have max value
Could someone please help on getting desired output .I am new to R ,would be happy on getting help on this .
Desired output :
movie name collection
“Sultan” “Ocollection”
“Dangal” “Tcollection”
“Sultan” “Fwcollection”
“Sultan” “Wcollection”
#transposed dataset to make the comparison easy of max collections within group
bolly_melt <- melt(bollywood,id=c(“Lead”, “Movie”, “Rdate”, “Verdict”))