Answered step by step
Verified Expert Solution
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 Assignment
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 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 cbindheights 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 weightsin 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: and including the output in
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