Question: Question 3 Part A ) Run the next cell to read in the data set called data 1 and to check its dimension. mydata
Question
Part A Run the next cell to read in the data set called "data and to check its dimension.
mydata read.tabledata
dimmydata
"mydata" is a "data frame" which is essentially a table. Because the dimension is by it is a single column of data. In this case it is going to be easier to remove the more complicated table struction and turn it into a vector. Do you recall how we use the letter c to define a vector? Run the next cell. Notice the check before and after the transformation as to whether or not we have a vector.
isvectormydata
mydata cunlistmydata
isvectormydata
FALSE
TRUE
In the next cell, make a histogram of the data. Be sure to use "density" on the yaxis. Use the given "breaks" vector. ie use breaksbr in your histogram Usually you will have to determine the breaks yourself by looking at the minimum and maximum of the data and trying different bin widths. We are giving you a specific vector of breaks here to help with the autograder. We are also giving the histogram a name for the autograder usually you would not have anything before "hist" on that line.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
