I was finally able to focus on R this weekend and catch up on all of my assignments. I spent a lot of time in R, and I definitely feel more confident in the program now. I was FaceTiming with one of my friends who has a lot of experience in R, and she was able to show me some things and help me fix my code in a couple spots. This week’s assignment was broken up into two parts – functions and clustering. We went back to our original red and white wine dataset and also utilized another wine dataset. I really enjoyed this assignment, and I walked away with a further developed R skillset.
The first part of the assignment utilized two datasets collected on red and white Portuguese wine. After importing the datasets, we had to join the datasets by wine color using bind rows. Then we created two different functions to use on our data. The first function mimicked PROC MEANS in SAS and provided the summary statistics. The second function mimicked PROC FREQ in SAS and provided the frequency and percent by variable. It took me a minute to get use to the format of the functions, but once I got it, it seemed pretty simple.
The final part of the assignment used our old wine dataset. After standardizing, we created some clusters for this wine data – using 5 clusters on alcohol, density, and residual sugar and separating red versus white wine.
I look forward to further developing my skills in R!