Module #2 Assignment Blog Post

 In this blog post I am going over the details assigned in the assignment, Module # 2 assignment.


To begin with, we are given the data set named assignment.

assignment2<- c(6,18,14,22,27,17,22,20,22)

Followed by a function, myMean.

myMean <- function(assignment2) {return(sum(assignment2)/length(assignment2))}

Between this dataset and the function, we are asked to evaluate what myMean does and how assignment fits within it. 

Fitting the name, this function evaluates the mean of the dataset assignment which can be proven by running the function in RStudio along with the dataset, this produces the mean value of 18.66666667.



Comments