Sunday, January 31, 2016

Module 3 : Data.frame and Much More!

This was quite a difficult module for me! I didn't have problems understanding about matrices, data tables, lists or the other topics discussed in the reading, but I did have some problems running the procedure in the assignment tutorial using the following as a data source:

Name <- c("Jeb", "Donald", "Ted", "Marco", "Carly", "Hilary", "Bernie")
"ABCP" <- c(4, 62, 51, 21, 2, 14, 15)
"CBSP" <- c(12, 75, 43, 19, 1, 21, 19)

Following is what I was able to complete:



As you can see, I was able to create the data frame and display it. Looks nice! I started to have problems from this point down, where I am entering mean(results.df) and receiving the warning message mentioned in the tutorial. I am not sure how to avoid this, unfortunately.

From this part on, I am really sure sure where the data is coming from. Nothing had been created for C previously and so R Studio is not recognizing it as an object. Further, I am not sure how I would apply that to the polling data we were given for this assignment. I do certainly understand the concepts behind the work, both from the book and in the assignment itself, but I would love some input or insight from anyone who has a better idea.

No comments:

Post a Comment