#dummyCodingUsingRstudio

I'm struggling to follow the question. It would be helpful to pose this question as a reprex, with sample data.


Note also that this kind of looks like a homework problem. If that's the case, please have a look to our homework policy, homework inspired questions are welcome but they should not include verbatim instructions from your course.

We certainly love to get homework problems, just not with verbatim text from the assignment.