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
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