I have data frame with two columns the first column is the number of children under the age of five that receive a treatment and the second column classifies the type of the treatment. I would like to know the total number of children under five who received treatment A, B, and C.
Treatment01 <- File01 %>% dplyr::filter(>of children under the age of five, Type of the treatment<)
I tried to use this code and
Treatment01 <- File01 %>% select(>of children under the age of five, Type of the treatment<)
I know dplyr::count()
needs to be involoved but i couldn’t solve it.
New contributor
Hamad Alonazi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.