I try to get out of my data a table and I don't know how to do this. This is my data. The header is in German. Because of this is my r-code in german too. sorry for that but I hope someone can help me with the subject .
I would like to get this output as a pivot table in r. I tryed to translate in english:
In r i tried different ways to get to a solution (library(pivottabler):
This on worked a bit, but I couldn't calculate the median. counting the rows
version with testing median calculation
Here I don' get the value into the table table without values
I also tried this. But this is not the output I am looking for. group_by and summarise
Thanks for your help. mg