I have a dataframe with the format
Id_patient Evnt_chr
1 30 evnt
2 30 evnt
3 30 Not evnt
4 1 Not evnt
5 1 Not evnt
6 9 evnt
7 89 evnt
8 89 Not evnt
I need to get data frame in the following form:
Evnt_chr Nb_id_patient %
evnt 3 75
Not_evnt 1 25
Thank you for your help
Mathieu