Welcome to the RStudio Community!
As a general rule, you will probably get your data in an excel file or a csv file, and the
readr package is an excellent tool for data importing.
Once you have the data in R, you will want to check for missing data with the
naniar package, and explore your data with the DataExplorer and skimr packages.
You may find that you need to make your data more tidy (
https://vita.had.co.nz/papers/tidy-data.pdf ), in which case you may need to use the tidyr and dplyr packages to rearrange your data.
For forecasting, there are several choices, but if it is a time series, the
tsibble and fable packages are popular.
By the way, specific questions about homework can not be answered here, but general inquiries (like this) are welcome.
Your professor would likely also appreciate it if you asked some of these questions at office hours. Give it a try.
Can I ask questions from a course I am taking here?
General questions are always welcome!
Please do ask general questions about things like:
How to use R
How to use the RStudio IDE or RStudio Cloud
How to work with tidyverse packages
Where to find resources to help you learn or solve problems
Specific questions can be OK, if you follow these rules:
Never copy-paste instructions from an assignment (even for online courses).
Explicitly mention the course you are taking and use the #homework tag.
Ask your question as a reproducible example (reprex), preferably prepared for posting using the reprex package.
Want to maximize your chances of getting the help you need? Keep readin…