Welcome to the forum!
There are lots of knowledgeable people here who would be happy to help, but to make that possible, they will need to know more about what you're trying to do.
- Do you have a working instance of R and RStudio? We won't be much help until you are able to run R code.
1 Introduction | R for Data Science - What is the problem you're trying to address? Most successful questions here are specific about what the asker wants to do, what they've tried, and what has gotten them stuck.
FAQ: Tips for writing R-related questions
I'm guessing you might be interested in visualizing the relationship between these two measures over time. The tidyverse set of packages makes it pretty straightforward to load the data, transform it into the structure you want, and visualize it. Or maybe you want to regress oil (prices, I'm guessing) against the exchange rate? In any case, you can get a good background for each of these steps in the R4DS book, available free online: