The dataset for this assignment was related to the construction of a data frame. Poll results from two news stations were included and reported on the results for seven candidates. To create this data frame using the provided data, I listed the names and poll numbers in a series of vectors
Next, I created the data frame using the "data.frame" function within R. In addition, I used the "cbind" function to incorporate the data from the CBS vector. 
I wanted to create column and row names in order to identify the candidate votes and which station these were reported from. "Colnames" and "rownames" allowed me to input new titles for the data frame.
This is the final outcome for the data frame after these steps were taken. It provides a more organized and concise appearance, allowing comparative insight to be made about these reports.
With this data frame, we can utilize other functions within R to determine a great number of qualities about the data.
No comments:
Post a Comment