Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

STATS 1 0 Assignment 1 Please submit both parts of the assignment in che single PDF file. You can use any PDF editor software to

STATS 10 Assignment 1
Please submit both parts of the assignment in che single PDF file. You can use any PDF editor software to merge the two parts into one file. Please make sure that the questions are in the correct order and clearly labeled, and that the answers are legible and easy to read.
To submit your assignment, upload the PDF file under the designated assignment page on the course website before the deadline specified. Email or hard copy submissions are not accepted.
Part I
Include both the R commands and their corresponding outputs, results, or answers for all exercise questions in Part I.
Vectors:
a. Create a vector named heights that contains the heights, in inches, of yourself and two other people. Print the contents of this vector.
b. Create a vector named names that contains the names of these people. Print the contents of this vector.
c. Try typing cbind(heights, names). What did this command do? What class is this new object? Hint: Try the class() function
Work with the births data set.
a. Extract the weight variable as a vector from the data frame.
b. The original unit of weight is ounce. Create a new vector named weights_in pounds which are the weights of the babies in pounds. You can look up conversion factors on the internet. Demonstrate your success by typing weights in pounds[1:20] and including the output in
image text in transcribed

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

Database Processing

Authors: David M. Kroenke, David Auer

11th Edition

B003Y7CIBU, 978-0132302678

More Books

Students also viewed these Databases questions