Answered step by step
Verified Expert Solution
Link Copied!

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

Step: 1

Heres the R code for ... 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: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions