Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

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

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_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students explore these related Finance questions