Answered step by step
Verified Expert Solution
Question
1 Approved Answer
STATS 1 0 Assignment 1 Please submit both parts of the assignment in one single PDF file. You can use any PDF editor software to
STATS Assignment
Please submit both parts of the assignment in one 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
students near you. 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.
Downloading data:
a Download the data set births.csv from the course site and upload it into RStudio. Name
the data frame NCbirths.
b Demonstrate that you have been successful by typing headNCbirths and copying and
pasting the output into your word processing document.
Package loading
a Install the maps package. Verify its installation by typing find.packagemaps and
include the output in your answer.
b Type librarymaps to load up the package. Type mapstate and include the plot output
in your answer.
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