Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started