Name Age Vaccination
A 12 yes
B 16 yes
C 12 no
D 19 no
F 21 yes
In this table, can someone tell me how should I write an R program to find out the mean of the age of people who have a vaccination status of YES?
Thank you