Evaluating the function myMean in RStudio
After running the given code in the assignment, an error is prompted that reads object assignment not found.
The function does not work because it references assignment, and someData that were not previously defined inside the function. We passed the function assignment2, but the calculations were not done since R could not find the variables, since they were labeled as assignment2 and someData. After fixing those two and replacing assignment and someData with assignemnet2 we get the proper mean.


Comments
Post a Comment