Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 STATHWR
Part
Create a vector called myVector of length with values
Part
Create a string called myString and have it store your name.
Part
Create a function that takes a single variable a x 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 sampleData
Step by Step Solution
★★★★★
3.50 Rating (157 Votes )
There are 3 Steps involved in it
Step: 1
Heres the R code for ...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