Whether effect of one categorical variable on a continuous variable depends on levels of another categorical variable

In the dataset I need to analyse, I need to look at whether the effect of people's profession (3 categories) on their scores on a test (I have already tested for this effect and found one) differs across levels of a second categorical variable (whether they work at home, in person, or a mixture). I'm struggling to wrap my head around how to do this in R...

Topic r categorical-data

Category Data Science

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.