Applied Analytics Assignment 2

Author

Aman Bajpai (23103620)

Learning Diary

Starting my journey into R programming, I decided to keep this learning diary to track all the ups and downs I face along the way. R is a powerful tool for stats and making cool graphs, but it’s not always easy to get the hang of. This diary isn’t just for me to remember what I’ve learned; it’s also here to help anyone else who might run into the same kind of issues. By writing down the problems I encounter and how I solve them, I hope to get better at this and maybe make someone else’s learning curve a bit smoother. Each entry in this diary is a small story of a challenge faced and overcome, shared in the hope that it can help us all learn better.

Errors Faced:

1. Working Directory Error

I fixed the above error by instead of using the file name, I used the file path as working directory.

2. Outdated Package Error

While trying to run a distinction function I learned that I need to have all the relevant packages updated for the required output to be generated. I used update.packages("dyplr") to update the dyplr library and carry on with the code.

3. Reloading of Packages Error

I learned that even when packages have been installed they need to be loaded when starting a new project. Installed the missing package using install.packages("ggplot2") and then loaded it with library(ggplot2).

4. Incorrect Data Types Error

Used str(df) to identify mismatched data types and lengths; converted factors to numeric with as.numeric(as.character(df$Column)).

5. Read.csv Function Not Found

I had forgotten to reload (readr) library when I started a new session. I fixed this error simply by running library(readr) and reloading the library into the new session.

Conclusion:

Looking back at this learning diary, it’s amazing to see how far I’ve come with R programming. I started with some bumps, like mixing up commands or not getting the graphs I wanted. But every mistake was a chance to learn something new. Writing down my struggles and how I fixed them not only helped me remember better but might also help someone else facing the same issues. This diary shows that with a bit of effort and patience, you can get through tough spots and get better at something really challenging. I’m excited to see what else I can do with R now.