Question: Dear Expert, Please Answer these question for me very carefully. # Answer the following questions. # 1) Create a dataframe using vectors A, B, C,

Dear Expert,

Please Answer these question for me very carefully.

# Answer the following questions.

# 1) Create a dataframe using vectors A, B, C, and D. # Name the dataframe "myDF". After creating this dataframe, # view it in Excel style.

A=1:10 B=11:20 C=21:30 D=31:40

myDF = data.frame(A)

# 2) Multiply myDF's B column by 1.5. Assign the result # to a new variable called "newB"

# 3) Sum myDF's C and D columns. Assign the result # to a new variable called "sumCD"

# ncbirths.csv dataset contains data about newborn babies and their mothers collected at a hospital # in North Carolina. Download it from Canvas and copy (or upload if Server) it to R's working directory. # Read the dataset first by running the following lines.

b = read.csv("ncbirths.csv") View(b) # Name of the dataset is "b".

# 4) What is the weight of the baby in the 149th row?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!