Programming Journal #1: Revision

Last updated by Siobhan Wilmot-Dunbar

This first exercise in R took way longer than I expected and involved quite a bit of Googling to find my way around and figure some things out. I must admit, I had a difficult time navigating R and getting data to load and show on some type of graph--there are some speculations on the internet that R on a Mac requires a bit more configuration than R on a PC, but I’m not all sure about that as yet.

 

For this exercise, after watching the video on Arne Duncan speeches and reading Yau’s perspective on gathering and handling data (complete with his examples), I tackled the messy Duncan data in an attempt to count and plot the number of times a word was mentioned. At first, I wanted to count and display the number of times a word, for example education, was mentioned in his speech, but that proved to be continuously difficult. I also kept getting many, many errors. image

 

I then switched my focus and after finally getting the data frame to properly load into R in a way that I could read, I evaluated the speech titles since those were shorter than the entire speech and tried to isolate words that way. I feel like I wasn’t entirely successful, but I was able to get some type of bar plot going to display true and false values.

imageimage

image




imageimage

After that, I was able to convert it to a table to isolate words and frequencies, then back into a data frame and plot words from there. It did give me a bit of frustration, trying to do all of these searches, and coming across so many solutions that were completely unhelpful. However, I do feel proud of myself for being able to make some progress, and at least have a functioning data frame to count word frequencies.



image

History