I am very new to R and hope that someone could answer me.
There are two variables in the data, i.e. sex and age. There are female, male, na under the column sex and there are different ages under the column of age.
Is there a way to get something like
sex mean age
female mean age of female
male mean age of male
na mean age of na
Thanks a lot!