代做STAT 311 Programming Assignment 0代写留学生Matlab语言
- 首页 >> Python编程Programming Assignment 0
STAT 311
Please complete the following problems and submit a file named STAT311-HWO.R to Gradescope.
A total of 6 out of 7 points should be immediately visible. 1 point is hidden that tests your function.
Remember:
Start from the provided skeleton code file.
Do not rename provided data files or edit them in any way.
Do not use global paths in your script. to read in data. Instead, use setwd() interactively in the console to set your working directory. The submitted R file should only read data in by file name only, no folders in the path name.
Do not destroy or overwrite any requested variables in vour program. Thev are all required for the autograder to run.
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 your submission is named STAT311-HWO.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
Read the "Rule #1- Resolving Gradescope Submission Issues" post on EdStem and find the hidden value for HWO. Save it in a variable called HWOP3.
Part 4
The provided code does not run properly as an R script. Fix it without editing the values or variable names.
Part 5
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.