From 43cc8720ca95c55609c7b295ad130406c802811b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorena=20Dere=C5=BEanin?= Date: Wed, 21 Sep 2022 10:46:55 -0600 Subject: [PATCH] Fix incorrect wording mean -> median The `median()` function in R calculates the median, not the mean. --- 03-StatsForGenomics.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/03-StatsForGenomics.Rmd b/03-StatsForGenomics.Rmd index a7bfad2..f7db3f2 100644 --- a/03-StatsForGenomics.Rmd +++ b/03-StatsForGenomics.Rmd @@ -108,7 +108,7 @@ mean can be affected by outliers easily\index{outliers}. If certain values are very high or low compared to the bulk of the sample, this will shift mean toward those outliers. However, the median is not affected by outliers. It is simply the value in a distribution where half of the values are above and the other half are below. In R, the `median()` function -will calculate the mean of a provided vector of numbers. \index{median}Let's create a set of random numbers and calculate their mean and median using +will calculate the median of a provided vector of numbers. \index{median}Let's create a set of random numbers and calculate their mean and median using R. ```{r runifMeanMedChp3} #create 10 random numbers from uniform distribution