Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The studentdata.txt uploaded in eLC. This data was collected based on sheet of questions answered by a large number of students in introductory statistics classes.

The studentdata.txt uploaded in eLC. This data was collected based on sheet of questions answered by a large number of students in introductory statistics classes. The variable information is given below:

Student: student number Height: height in inches

Gender: gender Shoes: number of pairs of shoes owned

Number: number chosen between 1 and 10

Dvds: name of movie dvds owned

ToSleep: time the person went to sleep the previous night (hours past midnight)

WakeUp: time the person woke up the next morning

Haircut: cost of last haircut including tip

Job: number of hours working on a job per week

Drink: usual drink at suppertime among milk, water, and pop

1. Download this data set from eLC and import it as a data frame and store it as studentdata. Print the first 10 observations of studentdata.

2. Write an R code to determine which values are missing values for the variable Height and remove the missing values from the variable Height and calculate the mean height of the students.

3.Write an R code to create a new column and call it hours.of.sleep from the dataframe studentdata by calculating the number of hours the students slept last night. Also, write an R code to find the average number of hours students slept last night.

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

Medical Image Databases

Authors: Stephen T.C. Wong

1st Edition

1461375398, 978-1461375395

More Books

Students also viewed these Databases questions

Question

Is anything missing? Ideas, data, evidence, detail, and so on?

Answered: 1 week ago

Question

4. Who would lead the group?

Answered: 1 week ago

Question

2. What type of team would you recommend?

Answered: 1 week ago