Hi @jrazak! Welcome!
This page can help you choose a statistical test appropriate to your data, and shows example analyses in R: https://stats.idre.ucla.edu/other/mult-pkg/whatstat/
For more specific help, you’ll need to try some code yourself, then read this: FAQ: Tips for writing R-related questions
This is another useful resource: https://www.statmethods.net/stats/index.html
Also, your question sounds like it might be something you are doing as part of a class? If so, please also read and follow: FAQ: Homework Policy