Answered step by step
Verified Expert Solution
Link Copied!

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 3
Part A) Run the next cell to read in the data set called "data1" and to check its dimension.
mydata = read.table("data1")
dim(mydata)
100001
"mydata" is a "data frame" which is essentially a table. Because the dimension is 10,000 by 1, 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.
is.vector(mydata)
mydata = c(unlist(mydata))
is.vector(mydata)
FALSE
TRUE
In the next cell, make a histogram of the data. Be sure to use "density" on the y-axis. Use the given "breaks" vector. (i.e. use breaks=br 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions

Question

Determine the distribution function of min0yt X(y).

Answered: 1 week ago

Question

8. Explain the contact hypothesis.

Answered: 1 week ago

Question

2. Define the grand narrative.

Answered: 1 week ago