Sample2$Education<-Sample2$Education...72
table(Sample2$Education...72)
##
## Colege graduate College graduate College level
## 1 21 16
## Elementary graduate Elementary level Ementary level
## 17 21 1
## High chool graduate High schoo graduate High school graduate
## 1 1 22
## High School graduate High school level High scool level
## 4 37 1
## High sschool graduate Highschool level
## 1 1
library(dplyr)
Sample2%>%
group_by(Education)%>%
summarise(count=n())%>%
mutate(Percentage =round((count/sum(count)*100),2))
## # A tibble: 14 × 3
## Education count Percentage
## <chr> <int> <dbl>
## 1 Colege graduate 1 0.69
## 2 College graduate 21 14.5
## 3 College level 16 11.0
## 4 Elementary graduate 17 11.7
## 5 Elementary level 21 14.5
## 6 Ementary level 1 0.69
## 7 High School graduate 4 2.76
## 8 High chool graduate 1 0.69
## 9 High schoo graduate 1 0.69
## 10 High school graduate 22 15.2
## 11 High school level 37 25.5
## 12 High scool level 1 0.69
## 13 High sschool graduate 1 0.69
## 14 Highschool level 1 0.69