Module 2 Assignment
GitHub Repository: https://github.com/christilly/LIS-6371-USF
Code for this assignment can be found in repository under "module2.R"
I successfully tested this function on RStudio and determined that it worked correctly as shown on this image:
This function works because it has all of the required components of a function including the name, function, and argument. Additionally, the function correctly calculates mean by dividing the sum of the vector over the number of items in the vector. However, the in-built "mean" function in R can accomplish the same task by using less code. This is shown below:
Comments
Post a Comment