Categories
Mastering Development

how to make a table with unique count and count + percentage information

I am a r beginner. Please pardon me if this question sounds silly. If I have a data set like this: x<-data.frame( “ID”=c(21,17,21,19,22,21,26,22,18, 15), “sick”=c(T,T, F, T,T,F, T,T, T, F), “recover”=c(T,T,T,F,F,T,T,T,F,F)) and I want to make a table out of it, something looks like: Note unique count ID is 7, event count is 10. what […]