In my dataset, one of the columns is Education. There should be 5 categories. However, some of them are repeated. I would like to combine them. What code should I write?
table(df_all$Education)
Output:
Less than Primary Less than Primary Primary Secondary Tertiary or above Tertiary or above Unknown
206 3 1174 3494 455 3 969
I would like to merge both "less than primary" and "Tertiary or above" together.
Updates I just checked that "Less than Primary" and "Tertiary or above" do not have extra blankspace. I still don't know why they are different.