I have categorical data of behaviours observed for male and female foxes, and I want to count the number of times confident/cautious behaviour was observed if the fox was male and how many times those behaviours were observed if the fox was female.
I tried using an if/then statement but I'm relatively new to R and can't figure out how to make the then statement a count function