From 47d7ec073e2660367f5bedf1b426ebe308ed6d9a Mon Sep 17 00:00:00 2001 From: awfrankwils Date: Wed, 15 Jun 2016 17:45:06 -0400 Subject: [PATCH] Update da-numeric.Rmd Trying to modify code for own purposes, but do not fully understand. Some clarification would be much appreciated. :) --- 1-data-understanding/da-numeric.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-data-understanding/da-numeric.Rmd b/1-data-understanding/da-numeric.Rmd index f489e7e..baf0702 100644 --- a/1-data-understanding/da-numeric.Rmd +++ b/1-data-understanding/da-numeric.Rmd @@ -14,7 +14,7 @@ pander(summary(data_set[[num_var_names[i]]])) ```{r results='asis', comment=""} -warn_extreme_values=3 +warn_extreme_values=3 #could you comment the code with theory behind why "3" is used here? d1 = quantile(na.omit(data_set[[num_var_names[i]]]),probs = seq(0, 1, 0.01))[2] > warn_extreme_values*quantile(na.omit(data_set[[num_var_names[i]]]),probs = seq(0, 1, 0.01))[1] d99 = quantile(na.omit(data_set[[num_var_names[i]]]),probs = seq(0, 1, 0.01))[101] > warn_extreme_values*quantile(na.omit(data_set[[num_var_names[i]]]),probs = seq(0, 1, 0.01))[100] if(d1){cat('Warning : Suspect extreme values in left tail')}