Question: complete the following problems Do not rename provided data files or edit them in any way. Do not use global paths in your script.

complete the following problems 



 
Do not rename provided data files or edit them in any way.
Do not use global paths in your script. Instead, use setwd() interactively
in the console, but do not forget to remove or comment out this part of
the code before you submit. The directory structure of your machine is
not the same as the one on Gradescopes virtual machines.
Do not destroy or overwrite any requested variables in your program. I
check them only after I have run your entire program from start to finish.
Check to make sure you do not have any syntax errors. Reset the working
environment and rerun your entire assignment to ensure it runs without
errors.
Make sure to name your submission STAT311-HW0.R
Part 1
Create a vector called myVector of length 5 with values [1,2,3,4,7]
Part 2
Create a string called myString and have it store your name.
Part 3
Create a function that takes a single variable (a 3x3 matrix or dataframe) and
returns a vector equal to the sum of the rows of the input matrix or dataframe.
Call it myFunction, which you can test on the Dataset SampleData.csv which
is saved in the variable sampleData1.
1

Step by Step Solution

3.50 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres the R code for ... View full answer

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 Programming Questions!