I am very much new to R, and I am struggling with finding a way to count unique values across two variables, and have the count sorted by two other variables. My data has rows f