I can do it using group by with only one Column but I want the Count for every Column in the Dataframe. See example:
Dataframe with similar values in each Column: df =
C1 C2 C3
1 Positiv Negativ Neutral
2 NA Neutral Positiv
3 Positiv NA Negativ
4 Negativ Positiv NA
I thought about something like this:
df %>% group_by(names(df)) %>% count()
desired Output: Count Values in each Column
C1 C2 C3
1 Positive 2 1 1
2 Negative 1 1 1
3 Neutral 0 1 1
4 NA 1 1 1