I have the below dataset and trying to calculate the range for Looks of Boys and Girls.
I was trying with the function range but how do i pass Boy or Girl to the Gender? something like Gender='Boy' or Gender = 'Girl'?
> range(~Looks, ~Gender, data = PopularKids)
Boy1 Boy2 Girl1 Girl2
1 4 1 4
Age Gender GradeLevel School Location Goal Grades Sports Looks Money
1 11 Boy 5 Elm Rural Sports 1 2 4 3
2 10 Boy 5 Elm Rural Popular 2 1 4 3
3 11 Girl 5 Elm Rural Popular 4 3 1 2
4 11 Girl 5 Elm Rural Popular 2 3 4 1
5 10 Girl 5 Elm Rural Popular 4 2 1 3
6 11 Girl 5 Elm Rural Popular 4 2 1 3