Creating a cross table with different layers combined

Hii, I'm a student starting with Rstudio. I learned some basics on this program, but I am currently struggling in making a nice table including multiple variables.

The picture shows the example of the table i want to make, but I don't know who to get this in a nice way. I do have a csv file with all data, so I do have the tools to create it :smile:. Thanks for the help in advance!