I am quite a novice with R and I am currently trying to look through a large dataset with around 157 different variables of patient data, I want to see the difference between one variable and another in 2 different ethnic subgroups and both genders but not too sure how to do this.
In my dataset Gender is categorised with 0 being female and 1 being male. I then have ethnicity categorised from 1-15 and I want to look at the variation between ethnicity and genders in these different variables. E.g. what is the average height of females and age with ethnicity 2
Here is an example of doing that sort of thing with some data I invented. It would not matter if there were more columns in the data, the code would be the same. I strongly recommend you read a book like R for Data Science