Module #2 Assignment Importing Dara Function Evaluation in R
1.) There was an error because "assignment" was not found.
2.) The function failed. The first line in R, assignment2, is a vector holding all the numbers. In the third line of code, "assignment" should be replaced with "assignment2", since that’s the vector we made earlier. We also want the length of "someData", but "someData" was never created, so that should also be changed to "assignment2". Lastly, we want to find the mean of assignment2, so we run myMean(assignment2)
Comments
Post a Comment