diff --git a/R/ds-auto-summary.R b/R/ds-auto-summary.R index 97e2abd..eac67ae 100644 --- a/R/ds-auto-summary.R +++ b/R/ds-auto-summary.R @@ -1,6 +1,6 @@ -#' Summary statistics +#' Descriptive statistics and frquency tables #' -#' Generate summary statistics for all continuous variables in data. +#' Generate summary statistics & frequency table for all continuous variables in data. #' #' @param data A \code{data.frame} or \code{tibble}. #' @param ... Column(s) in \code{data}. diff --git a/R/ds-multistats.R b/R/ds-multistats.R index b02238a..2a7b41a 100644 --- a/R/ds-multistats.R +++ b/R/ds-multistats.R @@ -1,4 +1,4 @@ -#' Multiple variable statistics +#' Tidy descriptive statistics #' #' Descriptive statistics for multiple variables. #' diff --git a/R/ds-plots.R b/R/ds-plots.R index 6056e42..9cfb8f9 100644 --- a/R/ds-plots.R +++ b/R/ds-plots.R @@ -7,7 +7,7 @@ #' #' @examples #' ds_plot_scatter(mtcarz) -#' ds_plot_scatter(mtcarz, mpg, disp, hp) +#' ds_plot_scatter(mtcarz, mpg, disp) #' #' @importFrom rlang sym #' @importFrom utils combn @@ -424,7 +424,7 @@ ds_plot_bar_grouped <- function(data, ...) { } -#' Compate distributions +#' Compare distributions #' #' Creates box plots if the data has both categorical & continuous variables. #' diff --git a/_pkgdown.yml b/_pkgdown.yml index 99438ea..e694d69 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -65,6 +65,7 @@ reference: - ds_auto_summary_stats - ds_summary_stats - ds_tidy_stats + - ds_freq_table - ds_measures_location - ds_measures_variation - ds_measures_symmetry diff --git a/cran-comments.md b/cran-comments.md index 8b70a39..a74ddef 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,16 +1,16 @@ -This is a patch release for bug fixes. - ## Test environments -* local Windows 10, R 3.4.4 -* ubuntu 12.04 (on travis-ci), R 3.3.3, R 3.4.4, R-devel +* local Windows 10, R 3.5.1 +* ubuntu 14.04 (on travis-ci), R 3.4.4, R 3.5.2, R-devel * win-builder (devel and release) ## R CMD check results -0 errors | 0 warnings | 0 note +0 errors | 0 warnings | 1 note + +* There was 1 NOTE about ORCID ID in R 3.4.4 ## Reverse dependencies -We checked 2 dependencies (olsrr and inferr) and it returned a NOTE. +We checked 4 dependencies (olsrr, blorr, xplorerr and inferr) and it returned a NOTE. diff --git a/docs/CNAME b/docs/CNAME new file mode 100644 index 0000000..3c70af6 --- /dev/null +++ b/docs/CNAME @@ -0,0 +1 @@ +descriptr.rsquaredacademy.com diff --git a/docs/CONDUCT.html b/docs/CONDUCT.html index 33090b4..3c67a79 100644 --- a/docs/CONDUCT.html +++ b/docs/CONDUCT.html @@ -60,7 +60,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -77,10 +77,13 @@ diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index e8a4872..a557243 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -60,7 +60,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -77,10 +77,13 @@ diff --git a/docs/articles/categorical-data.html b/docs/articles/categorical-data.html new file mode 100644 index 0000000..d85bc8a --- /dev/null +++ b/docs/articles/categorical-data.html @@ -0,0 +1,424 @@ + + + + + + + +Categorical Data • descriptr + + + + + + + + + +
+
+ + + +
+
+ + + + +
+

+Introduction

+

In this document, we will introduce you to functions for exploring and visualizing categorical data.

+
+ +
+

+Cross Tabulation

+

The ds_cross_table() function creates two way tables of categorical variables.

+ +

If you want the above result as a tibble, use ds_twoway_table().

+ +

A plot() method has been defined which will generate:

+
+

+Grouped Bar Plots

+
k <- ds_cross_table(mtcarz, cyl, gear)
+plot(k)
+

+
+
+

+Stacked Bar Plots

+
k <- ds_cross_table(mtcarz, cyl, gear)
+plot(k, stacked = TRUE)
+

+
+
+

+Proportional Bar Plots

+
k <- ds_cross_table(mtcarz, cyl, gear)
+plot(k, proportional = TRUE)
+

+
+
+ +
+

+Multiple One Way Tables

+

The ds_auto_freq_table() function creates multiple one way tables by creating a frequency table for each categorical variable in a data set. You can also specify a subset of variables if you do not want all the variables in the data set to be used.

+
ds_auto_freq_table(mtcarz)
+#>                              Variable: cyl                              
+#> -----------------------------------------------------------------------
+#> Levels     Frequency    Cum Frequency       Percent        Cum Percent  
+#> -----------------------------------------------------------------------
+#>    4          11             11              34.38            34.38    
+#> -----------------------------------------------------------------------
+#>    6           7             18              21.88            56.25    
+#> -----------------------------------------------------------------------
+#>    8          14             32              43.75             100     
+#> -----------------------------------------------------------------------
+#>  Total        32              -             100.00              -      
+#> -----------------------------------------------------------------------
+#> 
+#>                              Variable: vs                               
+#> -----------------------------------------------------------------------
+#> Levels     Frequency    Cum Frequency       Percent        Cum Percent  
+#> -----------------------------------------------------------------------
+#>    0          18             18              56.25            56.25    
+#> -----------------------------------------------------------------------
+#>    1          14             32              43.75             100     
+#> -----------------------------------------------------------------------
+#>  Total        32              -             100.00              -      
+#> -----------------------------------------------------------------------
+#> 
+#>                              Variable: am                               
+#> -----------------------------------------------------------------------
+#> Levels     Frequency    Cum Frequency       Percent        Cum Percent  
+#> -----------------------------------------------------------------------
+#>    0          19             19              59.38            59.38    
+#> -----------------------------------------------------------------------
+#>    1          13             32              40.62             100     
+#> -----------------------------------------------------------------------
+#>  Total        32              -             100.00              -      
+#> -----------------------------------------------------------------------
+#> 
+#>                             Variable: gear                              
+#> -----------------------------------------------------------------------
+#> Levels     Frequency    Cum Frequency       Percent        Cum Percent  
+#> -----------------------------------------------------------------------
+#>    3          15             15              46.88            46.88    
+#> -----------------------------------------------------------------------
+#>    4          12             27              37.5             84.38    
+#> -----------------------------------------------------------------------
+#>    5           5             32              15.62             100     
+#> -----------------------------------------------------------------------
+#>  Total        32              -             100.00              -      
+#> -----------------------------------------------------------------------
+#> 
+#>                             Variable: carb                              
+#> -----------------------------------------------------------------------
+#> Levels     Frequency    Cum Frequency       Percent        Cum Percent  
+#> -----------------------------------------------------------------------
+#>    1           7              7              21.88            21.88    
+#> -----------------------------------------------------------------------
+#>    2          10             17              31.25            53.12    
+#> -----------------------------------------------------------------------
+#>    3           3             20              9.38             62.5     
+#> -----------------------------------------------------------------------
+#>    4          10             30              31.25            93.75    
+#> -----------------------------------------------------------------------
+#>    6           1             31              3.12             96.88    
+#> -----------------------------------------------------------------------
+#>    8           1             32              3.12              100     
+#> -----------------------------------------------------------------------
+#>  Total        32              -             100.00              -      
+#> -----------------------------------------------------------------------
+
+
+

+Multiple Two Way Tables

+

The ds_auto_cross_table() function creates multiple two way tables by creating a cross table for each unique pair of categorical variables in a data set. You can also specify a subset of variables if you do not want all the variables in the data set to be used.

+
ds_auto_cross_table(mtcarz, cyl, gear, am)
+#>     Cell Contents
+#>  |---------------|
+#>  |     Frequency |
+#>  |       Percent |
+#>  |       Row Pct |
+#>  |       Col Pct |
+#>  |---------------|
+#> 
+#>  Total Observations:  32 
+#> 
+#>                                 cyl vs gear                                 
+#> ----------------------------------------------------------------------------
+#> |              |                           gear                            |
+#> ----------------------------------------------------------------------------
+#> |          cyl |            3 |            4 |            5 |    Row Total |
+#> ----------------------------------------------------------------------------
+#> |            4 |            1 |            8 |            2 |           11 |
+#> |              |        0.031 |         0.25 |        0.062 |              |
+#> |              |         0.09 |         0.73 |         0.18 |         0.34 |
+#> |              |         0.07 |         0.67 |          0.4 |              |
+#> ----------------------------------------------------------------------------
+#> |            6 |            2 |            4 |            1 |            7 |
+#> |              |        0.062 |        0.125 |        0.031 |              |
+#> |              |         0.29 |         0.57 |         0.14 |         0.22 |
+#> |              |         0.13 |         0.33 |          0.2 |              |
+#> ----------------------------------------------------------------------------
+#> |            8 |           12 |            0 |            2 |           14 |
+#> |              |        0.375 |            0 |        0.062 |              |
+#> |              |         0.86 |            0 |         0.14 |         0.44 |
+#> |              |          0.8 |            0 |          0.4 |              |
+#> ----------------------------------------------------------------------------
+#> | Column Total |           15 |           12 |            5 |           32 |
+#> |              |        0.468 |        0.375 |        0.155 |              |
+#> ----------------------------------------------------------------------------
+#> 
+#> 
+#>                          cyl vs am                           
+#> -------------------------------------------------------------
+#> |              |                     am                     |
+#> -------------------------------------------------------------
+#> |          cyl |            0 |            1 |    Row Total |
+#> -------------------------------------------------------------
+#> |            4 |            3 |            8 |           11 |
+#> |              |        0.094 |         0.25 |              |
+#> |              |         0.27 |         0.73 |         0.34 |
+#> |              |         0.16 |         0.62 |              |
+#> -------------------------------------------------------------
+#> |            6 |            4 |            3 |            7 |
+#> |              |        0.125 |        0.094 |              |
+#> |              |         0.57 |         0.43 |         0.22 |
+#> |              |         0.21 |         0.23 |              |
+#> -------------------------------------------------------------
+#> |            8 |           12 |            2 |           14 |
+#> |              |        0.375 |        0.062 |              |
+#> |              |         0.86 |         0.14 |         0.44 |
+#> |              |         0.63 |         0.15 |              |
+#> -------------------------------------------------------------
+#> | Column Total |           19 |           13 |           32 |
+#> |              |        0.594 |        0.406 |              |
+#> -------------------------------------------------------------
+#> 
+#> 
+#>                          gear vs am                          
+#> -------------------------------------------------------------
+#> |              |                     am                     |
+#> -------------------------------------------------------------
+#> |         gear |            0 |            1 |    Row Total |
+#> -------------------------------------------------------------
+#> |            3 |           15 |            0 |           15 |
+#> |              |        0.469 |            0 |              |
+#> |              |            1 |            0 |         0.47 |
+#> |              |         0.79 |            0 |              |
+#> -------------------------------------------------------------
+#> |            4 |            4 |            8 |           12 |
+#> |              |        0.125 |         0.25 |              |
+#> |              |         0.33 |         0.67 |         0.38 |
+#> |              |         0.21 |         0.62 |              |
+#> -------------------------------------------------------------
+#> |            5 |            0 |            5 |            5 |
+#> |              |            0 |        0.156 |              |
+#> |              |            0 |            1 |         0.16 |
+#> |              |            0 |         0.38 |              |
+#> -------------------------------------------------------------
+#> | Column Total |           19 |           13 |           32 |
+#> |              |        0.594 |        0.406 |              |
+#> -------------------------------------------------------------
+
+
+ + + +
+ + + +
+ + + + + diff --git a/docs/articles/descriptive-stats_files/figure-html/cross_group-1.png b/docs/articles/categorical-data_files/figure-html/cross_group-1.png similarity index 100% rename from docs/articles/descriptive-stats_files/figure-html/cross_group-1.png rename to docs/articles/categorical-data_files/figure-html/cross_group-1.png diff --git a/docs/articles/descriptive-stats_files/figure-html/cross_prop-1.png b/docs/articles/categorical-data_files/figure-html/cross_prop-1.png similarity index 100% rename from docs/articles/descriptive-stats_files/figure-html/cross_prop-1.png rename to docs/articles/categorical-data_files/figure-html/cross_prop-1.png diff --git a/docs/articles/descriptive-stats_files/figure-html/cross_stack-1.png b/docs/articles/categorical-data_files/figure-html/cross_stack-1.png similarity index 100% rename from docs/articles/descriptive-stats_files/figure-html/cross_stack-1.png rename to docs/articles/categorical-data_files/figure-html/cross_stack-1.png diff --git a/docs/articles/descriptive-stats_files/figure-html/ftable_bar-1.png b/docs/articles/categorical-data_files/figure-html/ftable_bar-1.png similarity index 100% rename from docs/articles/descriptive-stats_files/figure-html/ftable_bar-1.png rename to docs/articles/categorical-data_files/figure-html/ftable_bar-1.png diff --git a/docs/articles/continuous-data.html b/docs/articles/continuous-data.html new file mode 100644 index 0000000..27d2109 --- /dev/null +++ b/docs/articles/continuous-data.html @@ -0,0 +1,682 @@ + + + + + + + +Continuous Data • descriptr + + + + + + + + + +
+
+ + + +
+
+ + + + +
+

+Introduction

+

This document introduces you to a basic set of functions that describe data continuous data. The other two vignettes introduce you to functions that describe categorical data and visualization options.

+
+ + +
+

+Summary Statistics

+

The ds_summary_stats function returns a comprehensive set of statistics including measures of location, variation, symmetry and extreme observations.

+ +

You can pass multiple variables as shown below:

+
ds_summary_stats(mtcarz, mpg, disp)
+#> ------------------------------ Variable: mpg ------------------------------
+#> 
+#>                         Univariate Analysis                          
+#> 
+#>  N                       32.00      Variance                36.32 
+#>  Missing                  0.00      Std Deviation            6.03 
+#>  Mean                    20.09      Range                   23.50 
+#>  Median                  19.20      Interquartile Range      7.38 
+#>  Mode                    10.40      Uncorrected SS       14042.31 
+#>  Trimmed Mean            19.95      Corrected SS          1126.05 
+#>  Skewness                 0.67      Coeff Variation         30.00 
+#>  Kurtosis                -0.02      Std Error Mean           1.07 
+#> 
+#>                               Quantiles                               
+#> 
+#>               Quantile                            Value                
+#> 
+#>              Max                                  33.90                
+#>              99%                                  33.44                
+#>              95%                                  31.30                
+#>              90%                                  30.09                
+#>              Q3                                   22.80                
+#>              Median                               19.20                
+#>              Q1                                   15.43                
+#>              10%                                  14.34                
+#>              5%                                   12.00                
+#>              1%                                   10.40                
+#>              Min                                  10.40                
+#> 
+#>                             Extreme Values                            
+#> 
+#>                 Low                                High                
+#> 
+#>   Obs                        Value       Obs                        Value 
+#>   15                         10.4        20                         33.9  
+#>   16                         10.4        18                         32.4  
+#>   24                         13.3        19                         30.4  
+#>    7                         14.3        28                         30.4  
+#>   17                         14.7        26                         27.3  
+#> 
+#> 
+#> 
+#> ------------------------------ Variable: disp -----------------------------
+#> 
+#>                           Univariate Analysis                            
+#> 
+#>  N                         32.00      Variance               15360.80 
+#>  Missing                    0.00      Std Deviation            123.94 
+#>  Mean                     230.72      Range                    400.90 
+#>  Median                   196.30      Interquartile Range      205.18 
+#>  Mode                     275.80      Uncorrected SS       2179627.47 
+#>  Trimmed Mean             228.00      Corrected SS          476184.79 
+#>  Skewness                   0.42      Coeff Variation           53.72 
+#>  Kurtosis                  -1.07      Std Error Mean            21.91 
+#> 
+#>                                 Quantiles                                 
+#> 
+#>                Quantile                              Value                 
+#> 
+#>               Max                                    472.00                
+#>               99%                                    468.28                
+#>               95%                                    449.00                
+#>               90%                                    396.00                
+#>               Q3                                     326.00                
+#>               Median                                 196.30                
+#>               Q1                                     120.83                
+#>               10%                                    80.61                 
+#>               5%                                     77.35                 
+#>               1%                                     72.53                 
+#>               Min                                    71.10                 
+#> 
+#>                               Extreme Values                              
+#> 
+#>                  Low                                  High                 
+#> 
+#>   Obs                          Value       Obs                          Value 
+#>   20                           71.1        15                            472  
+#>   19                           75.7        16                            460  
+#>   18                           78.7        17                            440  
+#>   26                            79         25                            400  
+#>   28                           95.1         5                            360
+

If you do not specify any variables, it will detect all the continuous variables in the data set and return summary statistics for each of them.

+
+ +
+

+Auto Summary

+

If you want to view summary statistics and frequency tables of all or subset of variables in a data set, use ds_auto_summary().

+
ds_auto_summary_stats(mtcarz, disp, mpg)
+#> ------------------------------ Variable: disp -----------------------------
+#> 
+#> ---------------------------- Summary Statistics ---------------------------
+#> 
+#> ------------------------------ Variable: disp -----------------------------
+#> 
+#>                           Univariate Analysis                            
+#> 
+#>  N                         32.00      Variance               15360.80 
+#>  Missing                    0.00      Std Deviation            123.94 
+#>  Mean                     230.72      Range                    400.90 
+#>  Median                   196.30      Interquartile Range      205.18 
+#>  Mode                     275.80      Uncorrected SS       2179627.47 
+#>  Trimmed Mean             228.00      Corrected SS          476184.79 
+#>  Skewness                   0.42      Coeff Variation           53.72 
+#>  Kurtosis                  -1.07      Std Error Mean            21.91 
+#> 
+#>                                 Quantiles                                 
+#> 
+#>                Quantile                              Value                 
+#> 
+#>               Max                                    472.00                
+#>               99%                                    468.28                
+#>               95%                                    449.00                
+#>               90%                                    396.00                
+#>               Q3                                     326.00                
+#>               Median                                 196.30                
+#>               Q1                                     120.83                
+#>               10%                                    80.61                 
+#>               5%                                     77.35                 
+#>               1%                                     72.53                 
+#>               Min                                    71.10                 
+#> 
+#>                               Extreme Values                              
+#> 
+#>                  Low                                  High                 
+#> 
+#>   Obs                          Value       Obs                          Value 
+#>   20                           71.1        15                            472  
+#>   19                           75.7        16                            460  
+#>   18                           78.7        17                            440  
+#>   26                            79         25                            400  
+#>   28                           95.1         5                            360  
+#> 
+#> 
+#> 
+#> NULL
+#> 
+#> 
+#> -------------------------- Frequency Distribution -------------------------
+#> 
+#>                                Variable: disp                                 
+#> |---------------------------------------------------------------------------|
+#> |      Bins       | Frequency | Cum Frequency |   Percent    | Cum Percent  |
+#> |---------------------------------------------------------------------------|
+#> |  71.1  - 151.3  |    12     |      12       |     37.5     |     37.5     |
+#> |---------------------------------------------------------------------------|
+#> | 151.3  - 231.5  |     5     |      17       |    15.62     |    53.12     |
+#> |---------------------------------------------------------------------------|
+#> | 231.5  - 311.6  |     6     |      23       |    18.75     |    71.88     |
+#> |---------------------------------------------------------------------------|
+#> | 311.6  - 391.8  |     5     |      28       |    15.62     |     87.5     |
+#> |---------------------------------------------------------------------------|
+#> | 391.8  -  472   |     4     |      32       |     12.5     |     100      |
+#> |---------------------------------------------------------------------------|
+#> |      Total      |    32     |       -       |    100.00    |      -       |
+#> |---------------------------------------------------------------------------|
+#> 
+#> 
+#> ------------------------------ Variable: mpg ------------------------------
+#> 
+#> ---------------------------- Summary Statistics ---------------------------
+#> 
+#> ------------------------------ Variable: mpg ------------------------------
+#> 
+#>                         Univariate Analysis                          
+#> 
+#>  N                       32.00      Variance                36.32 
+#>  Missing                  0.00      Std Deviation            6.03 
+#>  Mean                    20.09      Range                   23.50 
+#>  Median                  19.20      Interquartile Range      7.38 
+#>  Mode                    10.40      Uncorrected SS       14042.31 
+#>  Trimmed Mean            19.95      Corrected SS          1126.05 
+#>  Skewness                 0.67      Coeff Variation         30.00 
+#>  Kurtosis                -0.02      Std Error Mean           1.07 
+#> 
+#>                               Quantiles                               
+#> 
+#>               Quantile                            Value                
+#> 
+#>              Max                                  33.90                
+#>              99%                                  33.44                
+#>              95%                                  31.30                
+#>              90%                                  30.09                
+#>              Q3                                   22.80                
+#>              Median                               19.20                
+#>              Q1                                   15.43                
+#>              10%                                  14.34                
+#>              5%                                   12.00                
+#>              1%                                   10.40                
+#>              Min                                  10.40                
+#> 
+#>                             Extreme Values                            
+#> 
+#>                 Low                                High                
+#> 
+#>   Obs                        Value       Obs                        Value 
+#>   15                         10.4        20                         33.9  
+#>   16                         10.4        18                         32.4  
+#>   24                         13.3        19                         30.4  
+#>    7                         14.3        28                         30.4  
+#>   17                         14.7        26                         27.3  
+#> 
+#> 
+#> 
+#> NULL
+#> 
+#> 
+#> -------------------------- Frequency Distribution -------------------------
+#> 
+#>                               Variable: mpg                               
+#> |-----------------------------------------------------------------------|
+#> |    Bins     | Frequency | Cum Frequency |   Percent    | Cum Percent  |
+#> |-----------------------------------------------------------------------|
+#> | 10.4 - 15.1 |     6     |       6       |    18.75     |    18.75     |
+#> |-----------------------------------------------------------------------|
+#> | 15.1 - 19.8 |    12     |      18       |     37.5     |    56.25     |
+#> |-----------------------------------------------------------------------|
+#> | 19.8 - 24.5 |     8     |      26       |      25      |    81.25     |
+#> |-----------------------------------------------------------------------|
+#> | 24.5 - 29.2 |     2     |      28       |     6.25     |     87.5     |
+#> |-----------------------------------------------------------------------|
+#> | 29.2 - 33.9 |     4     |      32       |     12.5     |     100      |
+#> |-----------------------------------------------------------------------|
+#> |    Total    |    32     |       -       |    100.00    |      -       |
+#> |-----------------------------------------------------------------------|
+
+
+

+Group Summary

+

The ds_group_summary() function returns descriptive statistics of a continuous variable for the different levels of a categorical variable.

+ +

ds_group_summary() returns a tibble which can be used for further analysis.

+ +
+

+Box Plot

+

A plot() method has been defined for comparing distributions.

+
k <- ds_group_summary(mtcarz, cyl, mpg)
+plot(k)
+

+
+
+

+Multiple Variables

+

If you want grouped summary statistics for multiple variables in a data set, use ds_auto_group_summary().

+
ds_auto_group_summary(mtcarz, cyl, gear, mpg)
+#>                                        mpg by cyl                                         
+#> -----------------------------------------------------------------------------------------
+#> |     Statistic/Levels|                    4|                    6|                    8|
+#> -----------------------------------------------------------------------------------------
+#> |                  Obs|                   11|                    7|                   14|
+#> |              Minimum|                 21.4|                 17.8|                 10.4|
+#> |              Maximum|                 33.9|                 21.4|                 19.2|
+#> |                 Mean|                26.66|                19.74|                 15.1|
+#> |               Median|                   26|                 19.7|                 15.2|
+#> |                 Mode|                 22.8|                   21|                 10.4|
+#> |       Std. Deviation|                 4.51|                 1.45|                 2.56|
+#> |             Variance|                20.34|                 2.11|                 6.55|
+#> |             Skewness|                 0.35|                -0.26|                -0.46|
+#> |             Kurtosis|                -1.43|                -1.83|                 0.33|
+#> |       Uncorrected SS|              8023.83|              2741.14|              3277.34|
+#> |         Corrected SS|               203.39|                12.68|                 85.2|
+#> |      Coeff Variation|                16.91|                 7.36|                16.95|
+#> |      Std. Error Mean|                 1.36|                 0.55|                 0.68|
+#> |                Range|                 12.5|                  3.6|                  8.8|
+#> |  Interquartile Range|                  7.6|                 2.35|                 1.85|
+#> -----------------------------------------------------------------------------------------
+#> 
+#> 
+#> 
+#>                                        mpg by gear                                        
+#> -----------------------------------------------------------------------------------------
+#> |     Statistic/Levels|                    3|                    4|                    5|
+#> -----------------------------------------------------------------------------------------
+#> |                  Obs|                   15|                   12|                    5|
+#> |              Minimum|                 10.4|                 17.8|                   15|
+#> |              Maximum|                 21.5|                 33.9|                 30.4|
+#> |                 Mean|                16.11|                24.53|                21.38|
+#> |               Median|                 15.5|                 22.8|                 19.7|
+#> |                 Mode|                 10.4|                   21|                   15|
+#> |       Std. Deviation|                 3.37|                 5.28|                 6.66|
+#> |             Variance|                11.37|                27.84|                44.34|
+#> |             Skewness|                -0.09|                  0.7|                 0.56|
+#> |             Kurtosis|                -0.38|                -0.77|                -1.83|
+#> |       Uncorrected SS|              4050.52|               7528.9|              2462.89|
+#> |         Corrected SS|               159.15|               306.29|               177.37|
+#> |      Coeff Variation|                20.93|                21.51|                31.15|
+#> |      Std. Error Mean|                 0.87|                 1.52|                 2.98|
+#> |                Range|                 11.1|                 16.1|                 15.4|
+#> |  Interquartile Range|                  3.9|                 7.08|                 10.2|
+#> -----------------------------------------------------------------------------------------
+
+
+ +
+

+Measures

+

If you want to view the measure of location, variation, symmetry, percentiles and extreme observations as tibbles, use the below functions. All of them, except for ds_extreme_obs() will work with single or multiple variables. If you do not specify the variables, they will return the results for all the continuous variables in the data set.

+ + + + + +
+
+ + + +
+ + + +
+ + + + + diff --git a/docs/articles/descriptive-stats_files/figure-html/fcont_hist-1.png b/docs/articles/continuous-data_files/figure-html/fcont_hist-1.png similarity index 100% rename from docs/articles/descriptive-stats_files/figure-html/fcont_hist-1.png rename to docs/articles/continuous-data_files/figure-html/fcont_hist-1.png diff --git a/docs/articles/descriptive-stats_files/figure-html/gsum_boxplot-1.png b/docs/articles/continuous-data_files/figure-html/gsum_boxplot-1.png similarity index 100% rename from docs/articles/descriptive-stats_files/figure-html/gsum_boxplot-1.png rename to docs/articles/continuous-data_files/figure-html/gsum_boxplot-1.png diff --git a/docs/articles/descriptive-stats.html b/docs/articles/descriptive-stats.html deleted file mode 100644 index f304458..0000000 --- a/docs/articles/descriptive-stats.html +++ /dev/null @@ -1,747 +0,0 @@ - - - - - - - -Introduction to descriptr • descriptr - - - - - - - - - -
-
- - - -
-
- - - - -
-

-Introduction

-

Descriptive statistics are used to summarize data. It enables us to present the data in a more meaningful way and to discern any patterns existing in the data. They can be useful for two purposes:

-
    -
  • provide basic information about variables in a data set
  • -
  • highlight potential relationships between variables
  • -
-

This document introduces you to a basic set of functions that describe data. There is a second vignette which provides details about functions which help visualize statistical distributions.

-
-
-

-Data

-

We have modified the mtcars data to create a new data set mtcarz. The only difference between the two data sets is related to the variable types.

-
str(mtcarz)
-
## 'data.frame':    32 obs. of  11 variables:
-##  $ mpg : num  21 21 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 ...
-##  $ cyl : Factor w/ 3 levels "4","6","8": 2 2 1 2 3 2 3 1 1 2 ...
-##  $ disp: num  160 160 108 258 360 ...
-##  $ hp  : num  110 110 93 110 175 105 245 62 95 123 ...
-##  $ drat: num  3.9 3.9 3.85 3.08 3.15 2.76 3.21 3.69 3.92 3.92 ...
-##  $ wt  : num  2.62 2.88 2.32 3.21 3.44 ...
-##  $ qsec: num  16.5 17 18.6 19.4 17 ...
-##  $ vs  : Factor w/ 2 levels "0","1": 1 1 2 2 1 2 1 2 2 2 ...
-##  $ am  : Factor w/ 2 levels "0","1": 2 2 2 1 1 1 1 1 1 1 ...
-##  $ gear: Factor w/ 3 levels "3","4","5": 2 2 2 1 1 1 1 2 2 2 ...
-##  $ carb: Factor w/ 6 levels "1","2","3","4",..: 4 4 1 1 2 1 4 2 2 4 ...
-
-
-

-Data Screening

-

The ds_screener() function will screen a data set and return the following: - Column/Variable Names - Data Type - Levels (in case of categorical data) - Number of missing observations - % of missing observations

-
ds_screener(mtcarz)
-
## -----------------------------------------------------------------------
-## |  Column Name  |  Data Type  |  Levels   |  Missing  |  Missing (%)  |
-## -----------------------------------------------------------------------
-## |      mpg      |   numeric   |    NA     |     0     |       0       |
-## |      cyl      |   factor    |   4 6 8   |     0     |       0       |
-## |     disp      |   numeric   |    NA     |     0     |       0       |
-## |      hp       |   numeric   |    NA     |     0     |       0       |
-## |     drat      |   numeric   |    NA     |     0     |       0       |
-## |      wt       |   numeric   |    NA     |     0     |       0       |
-## |     qsec      |   numeric   |    NA     |     0     |       0       |
-## |      vs       |   factor    |    0 1    |     0     |       0       |
-## |      am       |   factor    |    0 1    |     0     |       0       |
-## |     gear      |   factor    |   3 4 5   |     0     |       0       |
-## |     carb      |   factor    |1 2 3 4 6 8|     0     |       0       |
-## -----------------------------------------------------------------------
-## 
-##  Overall Missing Values           0 
-##  Percentage of Missing Values     0 %
-##  Rows with Missing Values         0 
-##  Columns With Missing Values      0
-
-
-

-Summary Statistics

-

The ds_summary_stats function returns a comprehensive set of statistics for continuous data.

-
ds_summary_stats(mtcarz, mpg)
-
##                         Univariate Analysis                          
-## 
-##  N                       32.00      Variance                36.32 
-##  Missing                  0.00      Std Deviation            6.03 
-##  Mean                    20.09      Range                   23.50 
-##  Median                  19.20      Interquartile Range      7.38 
-##  Mode                    10.40      Uncorrected SS       14042.31 
-##  Trimmed Mean            19.95      Corrected SS          1126.05 
-##  Skewness                 0.67      Coeff Variation         30.00 
-##  Kurtosis                -0.02      Std Error Mean           1.07 
-## 
-##                               Quantiles                               
-## 
-##               Quantile                            Value                
-## 
-##              Max                                  33.90                
-##              99%                                  33.44                
-##              95%                                  31.30                
-##              90%                                  30.09                
-##              Q3                                   22.80                
-##              Median                               19.20                
-##              Q1                                   15.43                
-##              10%                                  14.34                
-##              5%                                   12.00                
-##              1%                                   10.40                
-##              Min                                  10.40                
-## 
-##                             Extreme Values                            
-## 
-##                 Low                                High                
-## 
-##   Obs                        Value       Obs                        Value 
-##   15                         10.4        20                         33.9  
-##   16                         10.4        18                         32.4  
-##   24                         13.3        19                         30.4  
-##    7                         14.3        28                         30.4  
-##   17                         14.7        26                         27.3
-
-
-

-Cross Tabulation

-

The ds_cross_table() function creates two way tables of categorical variables.

-
ds_cross_table(mtcarz, cyl, gear)
-
##     Cell Contents
-##  |---------------|
-##  |     Frequency |
-##  |       Percent |
-##  |       Row Pct |
-##  |       Col Pct |
-##  |---------------|
-## 
-##  Total Observations:  32 
-## 
-## ----------------------------------------------------------------------------
-## |              |                           gear                            |
-## ----------------------------------------------------------------------------
-## |          cyl |            3 |            4 |            5 |    Row Total |
-## ----------------------------------------------------------------------------
-## |            4 |            1 |            8 |            2 |           11 |
-## |              |        0.031 |         0.25 |        0.062 |              |
-## |              |         0.09 |         0.73 |         0.18 |         0.34 |
-## |              |         0.07 |         0.67 |          0.4 |              |
-## ----------------------------------------------------------------------------
-## |            6 |            2 |            4 |            1 |            7 |
-## |              |        0.062 |        0.125 |        0.031 |              |
-## |              |         0.29 |         0.57 |         0.14 |         0.22 |
-## |              |         0.13 |         0.33 |          0.2 |              |
-## ----------------------------------------------------------------------------
-## |            8 |           12 |            0 |            2 |           14 |
-## |              |        0.375 |            0 |        0.062 |              |
-## |              |         0.86 |            0 |         0.14 |         0.44 |
-## |              |          0.8 |            0 |          0.4 |              |
-## ----------------------------------------------------------------------------
-## | Column Total |           15 |           12 |            5 |           32 |
-## |              |        0.468 |        0.375 |        0.155 |              |
-## ----------------------------------------------------------------------------
-

ds_twoway_table() will return a tibble.

-
ds_twoway_table(mtcarz, cyl, gear)
-
## Joining, by = c("cyl", "gear", "count")
-
## # A tibble: 8 x 6
-##   cyl   gear  count percent row_percent col_percent
-##   <fct> <fct> <int>   <dbl>       <dbl>       <dbl>
-## 1 4     3         1  0.0312      0.0909      0.0667
-## 2 4     4         8  0.25        0.727       0.667 
-## 3 4     5         2  0.0625      0.182       0.4   
-## 4 6     3         2  0.0625      0.286       0.133 
-## 5 6     4         4  0.125       0.571       0.333 
-## 6 6     5         1  0.0312      0.143       0.2   
-## 7 8     3        12  0.375       0.857       0.8   
-## 8 8     5         2  0.0625      0.143       0.4
-

A plot method has been defined which will generate:

-
-

-Grouped Bar Plots

-
k <- ds_cross_table(mtcarz, cyl, gear)
-plot(k)
-

-
-
-

-Stacked Bar Plots

-
k <- ds_cross_table(mtcarz, cyl, gear)
-plot(k, stacked = TRUE)
-

-
-
-

-Proportional Bar Plots

-
k <- ds_cross_table(mtcarz, cyl, gear)
-plot(k, proportional = TRUE)
-

-
-
-
-

-Frequency Table (Categorical Data)

-

The ds_freq_table() function creates frequency tables for categorical variables.

-
ds_freq_table(mtcarz, cyl)
-
##                              Variable: cyl                              
-## -----------------------------------------------------------------------
-## Levels     Frequency    Cum Frequency       Percent        Cum Percent  
-## -----------------------------------------------------------------------
-##    4          11             11              34.38            34.38    
-## -----------------------------------------------------------------------
-##    6           7             18              21.88            56.25    
-## -----------------------------------------------------------------------
-##    8          14             32              43.75             100     
-## -----------------------------------------------------------------------
-##  Total        32              -             100.00              -      
-## -----------------------------------------------------------------------
-
-

-Bar Plot

-

A barplot method has been defined.

-
k <- ds_freq_table(mtcarz, cyl)
-plot(k)
-

-
-
-
-

-Frequency Table (Continuous Data)

-

The ds_freq_cont function creates frequency tables for continuous variables. The default number of intervals is 5.

-
ds_freq_cont(mtcarz, mpg, 4)
-
##                                 Variable: mpg                                 
-## |---------------------------------------------------------------------------|
-## |      Bins       | Frequency | Cum Frequency |   Percent    | Cum Percent  |
-## |---------------------------------------------------------------------------|
-## |  10.4  -  16.3  |    10     |      10       |    31.25     |    31.25     |
-## |---------------------------------------------------------------------------|
-## |  16.3  -  22.1  |    13     |      23       |    40.62     |    71.88     |
-## |---------------------------------------------------------------------------|
-## |  22.1  -   28   |     5     |      28       |    15.62     |     87.5     |
-## |---------------------------------------------------------------------------|
-## |   28   -  33.9  |     4     |      32       |     12.5     |     100      |
-## |---------------------------------------------------------------------------|
-## |      Total      |    32     |       -       |    100.00    |      -       |
-## |---------------------------------------------------------------------------|
-
-

-Histogram

-

A hist method has been defined.

-
k <- ds_freq_cont(mtcarz, mpg, 4)
-plot(k)
-

-
-
-
-

-Group Summary

-

The ds_group_summary() function returns descriptive statistics of a continuous variable for the different levels of a categorical variable.

-
k <- ds_group_summary(mtcarz, cyl, mpg)
-k
-
##                                        mpg by cyl                                         
-## -----------------------------------------------------------------------------------------
-## |     Statistic/Levels|                    4|                    6|                    8|
-## -----------------------------------------------------------------------------------------
-## |                  Obs|                   11|                    7|                   14|
-## |              Minimum|                 21.4|                 17.8|                 10.4|
-## |              Maximum|                 33.9|                 21.4|                 19.2|
-## |                 Mean|                26.66|                19.74|                 15.1|
-## |               Median|                   26|                 19.7|                 15.2|
-## |                 Mode|                 22.8|                   21|                 10.4|
-## |       Std. Deviation|                 4.51|                 1.45|                 2.56|
-## |             Variance|                20.34|                 2.11|                 6.55|
-## |             Skewness|                 0.35|                -0.26|                -0.46|
-## |             Kurtosis|                -1.43|                -1.83|                 0.33|
-## |       Uncorrected SS|              8023.83|              2741.14|              3277.34|
-## |         Corrected SS|               203.39|                12.68|                 85.2|
-## |      Coeff Variation|                16.91|                 7.36|                16.95|
-## |      Std. Error Mean|                 1.36|                 0.55|                 0.68|
-## |                Range|                 12.5|                  3.6|                  8.8|
-## |  Interquartile Range|                  7.6|                 2.35|                 1.85|
-## -----------------------------------------------------------------------------------------
-

ds_group_summary() returns a tibble which can be used for further analysis.

-
k$tidy_stats
-
## # A tibble: 3 x 15
-##   cyl   length   min   max  mean median  mode    sd variance skewness
-##   <fct>  <int> <dbl> <dbl> <dbl>  <dbl> <dbl> <dbl>    <dbl>    <dbl>
-## 1 4         11  21.4  33.9  26.7   26    22.8  4.51    20.3     0.348
-## 2 6          7  17.8  21.4  19.7   19.7  21    1.45     2.11   -0.259
-## 3 8         14  10.4  19.2  15.1   15.2  10.4  2.56     6.55   -0.456
-## # ... with 5 more variables: kurtosis <dbl>, coeff_var <dbl>,
-## #   std_error <dbl>, range <dbl>, iqr <dbl>
-
-

-Box Plot

-

A boxplot() method has been defined.

-
k <- ds_group_summary(mtcarz, cyl, mpg)
-plot(k)
-

-
-
-
-

-Multiple Variable Statistics

-

The ds_multi_stats() function generates summary/descriptive statistics for variables in a data frame/tibble.

-
ds_multi_stats(mtcarz, mpg, disp, hp)
-
## # A tibble: 3 x 16
-##   vars    min   max  mean t_mean median  mode range variance  stdev  skew
-##   <chr> <dbl> <dbl> <dbl>  <dbl>  <dbl> <dbl> <dbl>    <dbl>  <dbl> <dbl>
-## 1 disp   71.1 472   231.   228    196.  276.  401.   15361.  124.   0.420
-## 2 hp     52   335   147.   144.   123   110   283     4701.   68.6  0.799
-## 3 mpg    10.4  33.9  20.1   20.0   19.2  10.4  23.5     36.3   6.03 0.672
-## # ... with 5 more variables: kurtosis <dbl>, coeff_var <dbl>, q1 <dbl>,
-## #   q3 <dbl>, iqrange <dbl>
-
-
-

-Multiple One Way Tables

-

The ds_oway_tables() function creates multiple one way tables by creating a frequency table for each categorical variable in a data frame.

- -
##                              Variable: cyl                              
-## -----------------------------------------------------------------------
-## Levels     Frequency    Cum Frequency       Percent        Cum Percent  
-## -----------------------------------------------------------------------
-##    4          11             11              34.38            34.38    
-## -----------------------------------------------------------------------
-##    6           7             18              21.88            56.25    
-## -----------------------------------------------------------------------
-##    8          14             32              43.75             100     
-## -----------------------------------------------------------------------
-##  Total        32              -             100.00              -      
-## -----------------------------------------------------------------------
-## 
-##                              Variable: vs                               
-## -----------------------------------------------------------------------
-## Levels     Frequency    Cum Frequency       Percent        Cum Percent  
-## -----------------------------------------------------------------------
-##    0          18             18              56.25            56.25    
-## -----------------------------------------------------------------------
-##    1          14             32              43.75             100     
-## -----------------------------------------------------------------------
-##  Total        32              -             100.00              -      
-## -----------------------------------------------------------------------
-## 
-##                              Variable: am                               
-## -----------------------------------------------------------------------
-## Levels     Frequency    Cum Frequency       Percent        Cum Percent  
-## -----------------------------------------------------------------------
-##    0          19             19              59.38            59.38    
-## -----------------------------------------------------------------------
-##    1          13             32              40.62             100     
-## -----------------------------------------------------------------------
-##  Total        32              -             100.00              -      
-## -----------------------------------------------------------------------
-## 
-##                             Variable: gear                              
-## -----------------------------------------------------------------------
-## Levels     Frequency    Cum Frequency       Percent        Cum Percent  
-## -----------------------------------------------------------------------
-##    3          15             15              46.88            46.88    
-## -----------------------------------------------------------------------
-##    4          12             27              37.5             84.38    
-## -----------------------------------------------------------------------
-##    5           5             32              15.62             100     
-## -----------------------------------------------------------------------
-##  Total        32              -             100.00              -      
-## -----------------------------------------------------------------------
-## 
-##                             Variable: carb                              
-## -----------------------------------------------------------------------
-## Levels     Frequency    Cum Frequency       Percent        Cum Percent  
-## -----------------------------------------------------------------------
-##    1           7              7              21.88            21.88    
-## -----------------------------------------------------------------------
-##    2          10             17              31.25            53.12    
-## -----------------------------------------------------------------------
-##    3           3             20              9.38             62.5     
-## -----------------------------------------------------------------------
-##    4          10             30              31.25            93.75    
-## -----------------------------------------------------------------------
-##    6           1             31              3.12             96.88    
-## -----------------------------------------------------------------------
-##    8           1             32              3.12              100     
-## -----------------------------------------------------------------------
-##  Total        32              -             100.00              -      
-## -----------------------------------------------------------------------
-
-
-

-Multiple Two Way Tables

-

The ds_tway_tables() function creates multiple two way tables by creating a cross table for each unique pair of categorical variables in a data frame.

- -
##     Cell Contents
-##  |---------------|
-##  |     Frequency |
-##  |       Percent |
-##  |       Row Pct |
-##  |       Col Pct |
-##  |---------------|
-## 
-##  Total Observations:  32 
-## 
-##                          cyl vs vs                           
-## -------------------------------------------------------------
-## |              |                     vs                     |
-## -------------------------------------------------------------
-## |          cyl |            0 |            1 |    Row Total |
-## -------------------------------------------------------------
-## |            4 |            1 |           10 |           11 |
-## |              |        0.031 |        0.312 |              |
-## |              |         0.09 |         0.91 |         0.34 |
-## |              |         0.06 |         0.71 |              |
-## -------------------------------------------------------------
-## |            6 |            3 |            4 |            7 |
-## |              |        0.094 |        0.125 |              |
-## |              |         0.43 |         0.57 |         0.22 |
-## |              |         0.17 |         0.29 |              |
-## -------------------------------------------------------------
-## |            8 |           14 |            0 |           14 |
-## |              |        0.438 |            0 |              |
-## |              |            1 |            0 |         0.44 |
-## |              |         0.78 |            0 |              |
-## -------------------------------------------------------------
-## | Column Total |           18 |           14 |           32 |
-## |              |        0.563 |        0.437 |              |
-## -------------------------------------------------------------
-## 
-## 
-##                          cyl vs am                           
-## -------------------------------------------------------------
-## |              |                     am                     |
-## -------------------------------------------------------------
-## |          cyl |            0 |            1 |    Row Total |
-## -------------------------------------------------------------
-## |            4 |            3 |            8 |           11 |
-## |              |        0.094 |         0.25 |              |
-## |              |         0.27 |         0.73 |         0.34 |
-## |              |         0.16 |         0.62 |              |
-## -------------------------------------------------------------
-## |            6 |            4 |            3 |            7 |
-## |              |        0.125 |        0.094 |              |
-## |              |         0.57 |         0.43 |         0.22 |
-## |              |         0.21 |         0.23 |              |
-## -------------------------------------------------------------
-## |            8 |           12 |            2 |           14 |
-## |              |        0.375 |        0.062 |              |
-## |              |         0.86 |         0.14 |         0.44 |
-## |              |         0.63 |         0.15 |              |
-## -------------------------------------------------------------
-## | Column Total |           19 |           13 |           32 |
-## |              |        0.594 |        0.406 |              |
-## -------------------------------------------------------------
-## 
-## 
-##                                 cyl vs gear                                 
-## ----------------------------------------------------------------------------
-## |              |                           gear                            |
-## ----------------------------------------------------------------------------
-## |          cyl |            3 |            4 |            5 |    Row Total |
-## ----------------------------------------------------------------------------
-## |            4 |            1 |            8 |            2 |           11 |
-## |              |        0.031 |         0.25 |        0.062 |              |
-## |              |         0.09 |         0.73 |         0.18 |         0.34 |
-## |              |         0.07 |         0.67 |          0.4 |              |
-## ----------------------------------------------------------------------------
-## |            6 |            2 |            4 |            1 |            7 |
-## |              |        0.062 |        0.125 |        0.031 |              |
-## |              |         0.29 |         0.57 |         0.14 |         0.22 |
-## |              |         0.13 |         0.33 |          0.2 |              |
-## ----------------------------------------------------------------------------
-## |            8 |           12 |            0 |            2 |           14 |
-## |              |        0.375 |            0 |        0.062 |              |
-## |              |         0.86 |            0 |         0.14 |         0.44 |
-## |              |          0.8 |            0 |          0.4 |              |
-## ----------------------------------------------------------------------------
-## | Column Total |           15 |           12 |            5 |           32 |
-## |              |        0.468 |        0.375 |        0.155 |              |
-## ----------------------------------------------------------------------------
-## 
-## 
-##                                                       cyl vs carb                                                        
-## -------------------------------------------------------------------------------------------------------------------------
-## |              |                                                  carb                                                  |
-## -------------------------------------------------------------------------------------------------------------------------
-## |          cyl |            1 |            2 |            3 |            4 |            6 |            8 |    Row Total |
-## -------------------------------------------------------------------------------------------------------------------------
-## |            4 |            5 |            6 |            0 |            0 |            0 |            0 |           11 |
-## |              |        0.156 |        0.188 |            0 |            0 |            0 |            0 |              |
-## |              |         0.45 |         0.55 |            0 |            0 |            0 |            0 |         0.34 |
-## |              |         0.71 |          0.6 |            0 |            0 |            0 |            0 |              |
-## -------------------------------------------------------------------------------------------------------------------------
-## |            6 |            2 |            0 |            0 |            4 |            1 |            0 |            7 |
-## |              |        0.062 |            0 |            0 |        0.125 |        0.031 |            0 |              |
-## |              |         0.29 |            0 |            0 |         0.57 |         0.14 |            0 |         0.22 |
-## |              |         0.29 |            0 |            0 |          0.4 |            1 |            0 |              |
-## -------------------------------------------------------------------------------------------------------------------------
-## |            8 |            0 |            4 |            3 |            6 |            0 |            1 |           14 |
-## |              |            0 |        0.125 |        0.094 |        0.188 |            0 |        0.031 |              |
-## |              |            0 |         0.29 |         0.21 |         0.43 |            0 |         0.07 |         0.44 |
-## |              |            0 |          0.4 |            1 |          0.6 |            0 |            1 |              |
-## -------------------------------------------------------------------------------------------------------------------------
-## | Column Total |            7 |           10 |            3 |           10 |            1 |            1 |           32 |
-## |              |        0.218 |        0.313 |        0.094 |        0.313 |        0.031 |        0.031 |              |
-## -------------------------------------------------------------------------------------------------------------------------
-## 
-## 
-##                           vs vs am                           
-## -------------------------------------------------------------
-## |              |                     am                     |
-## -------------------------------------------------------------
-## |           vs |            0 |            1 |    Row Total |
-## -------------------------------------------------------------
-## |            0 |           12 |            6 |           18 |
-## |              |        0.375 |        0.188 |              |
-## |              |         0.67 |         0.33 |         0.56 |
-## |              |         0.63 |         0.46 |              |
-## -------------------------------------------------------------
-## |            1 |            7 |            7 |           14 |
-## |              |        0.219 |        0.219 |              |
-## |              |          0.5 |          0.5 |         0.44 |
-## |              |         0.37 |         0.54 |              |
-## -------------------------------------------------------------
-## | Column Total |           19 |           13 |           32 |
-## |              |        0.594 |        0.407 |              |
-## -------------------------------------------------------------
-## 
-## 
-##                                 vs vs gear                                  
-## ----------------------------------------------------------------------------
-## |              |                           gear                            |
-## ----------------------------------------------------------------------------
-## |           vs |            3 |            4 |            5 |    Row Total |
-## ----------------------------------------------------------------------------
-## |            0 |           12 |            2 |            4 |           18 |
-## |              |        0.375 |        0.062 |        0.125 |              |
-## |              |         0.67 |         0.11 |         0.22 |         0.56 |
-## |              |          0.8 |         0.17 |          0.8 |              |
-## ----------------------------------------------------------------------------
-## |            1 |            3 |           10 |            1 |           14 |
-## |              |        0.094 |        0.312 |        0.031 |              |
-## |              |         0.21 |         0.71 |         0.07 |         0.44 |
-## |              |          0.2 |         0.83 |          0.2 |              |
-## ----------------------------------------------------------------------------
-## | Column Total |           15 |           12 |            5 |           32 |
-## |              |        0.469 |        0.374 |        0.156 |              |
-## ----------------------------------------------------------------------------
-## 
-## 
-##                                                        vs vs carb                                                        
-## -------------------------------------------------------------------------------------------------------------------------
-## |              |                                                  carb                                                  |
-## -------------------------------------------------------------------------------------------------------------------------
-## |           vs |            1 |            2 |            3 |            4 |            6 |            8 |    Row Total |
-## -------------------------------------------------------------------------------------------------------------------------
-## |            0 |            0 |            5 |            3 |            8 |            1 |            1 |           18 |
-## |              |            0 |        0.156 |        0.094 |         0.25 |        0.031 |        0.031 |              |
-## |              |            0 |         0.28 |         0.17 |         0.44 |         0.06 |         0.06 |         0.56 |
-## |              |            0 |          0.5 |            1 |          0.8 |            1 |            1 |              |
-## -------------------------------------------------------------------------------------------------------------------------
-## |            1 |            7 |            5 |            0 |            2 |            0 |            0 |           14 |
-## |              |        0.219 |        0.156 |            0 |        0.062 |            0 |            0 |              |
-## |              |          0.5 |         0.36 |            0 |         0.14 |            0 |            0 |         0.44 |
-## |              |            1 |          0.5 |            0 |          0.2 |            0 |            0 |              |
-## -------------------------------------------------------------------------------------------------------------------------
-## | Column Total |            7 |           10 |            3 |           10 |            1 |            1 |           32 |
-## |              |        0.219 |        0.312 |        0.094 |        0.312 |        0.031 |        0.031 |              |
-## -------------------------------------------------------------------------------------------------------------------------
-## 
-## 
-##                                 am vs gear                                  
-## ----------------------------------------------------------------------------
-## |              |                           gear                            |
-## ----------------------------------------------------------------------------
-## |           am |            3 |            4 |            5 |    Row Total |
-## ----------------------------------------------------------------------------
-## |            0 |           15 |            4 |            0 |           19 |
-## |              |        0.469 |        0.125 |            0 |              |
-## |              |         0.79 |         0.21 |            0 |         0.59 |
-## |              |            1 |         0.33 |            0 |              |
-## ----------------------------------------------------------------------------
-## |            1 |            0 |            8 |            5 |           13 |
-## |              |            0 |         0.25 |        0.156 |              |
-## |              |            0 |         0.62 |         0.38 |         0.41 |
-## |              |            0 |         0.67 |            1 |              |
-## ----------------------------------------------------------------------------
-## | Column Total |           15 |           12 |            5 |           32 |
-## |              |        0.469 |        0.375 |        0.156 |              |
-## ----------------------------------------------------------------------------
-## 
-## 
-##                                                        am vs carb                                                        
-## -------------------------------------------------------------------------------------------------------------------------
-## |              |                                                  carb                                                  |
-## -------------------------------------------------------------------------------------------------------------------------
-## |           am |            1 |            2 |            3 |            4 |            6 |            8 |    Row Total |
-## -------------------------------------------------------------------------------------------------------------------------
-## |            0 |            3 |            6 |            3 |            7 |            0 |            0 |           19 |
-## |              |        0.094 |        0.188 |        0.094 |        0.219 |            0 |            0 |              |
-## |              |         0.16 |         0.32 |         0.16 |         0.37 |            0 |            0 |          0.6 |
-## |              |         0.43 |          0.6 |            1 |          0.7 |            0 |            0 |              |
-## -------------------------------------------------------------------------------------------------------------------------
-## |            1 |            4 |            4 |            0 |            3 |            1 |            1 |           13 |
-## |              |        0.125 |        0.125 |            0 |        0.094 |        0.031 |        0.031 |              |
-## |              |         0.31 |         0.31 |            0 |         0.23 |         0.08 |         0.08 |         0.41 |
-## |              |         0.57 |          0.4 |            0 |          0.3 |            1 |            1 |              |
-## -------------------------------------------------------------------------------------------------------------------------
-## | Column Total |            7 |           10 |            3 |           10 |            1 |            1 |           32 |
-## |              |        0.219 |        0.313 |        0.094 |        0.313 |        0.031 |        0.031 |              |
-## -------------------------------------------------------------------------------------------------------------------------
-## 
-## 
-##                                                       gear vs carb                                                       
-## -------------------------------------------------------------------------------------------------------------------------
-## |              |                                                  carb                                                  |
-## -------------------------------------------------------------------------------------------------------------------------
-## |         gear |            1 |            2 |            3 |            4 |            6 |            8 |    Row Total |
-## -------------------------------------------------------------------------------------------------------------------------
-## |            3 |            3 |            4 |            3 |            5 |            0 |            0 |           15 |
-## |              |        0.094 |        0.125 |        0.094 |        0.156 |            0 |            0 |              |
-## |              |          0.2 |         0.27 |          0.2 |         0.33 |            0 |            0 |         0.47 |
-## |              |         0.43 |          0.4 |            1 |          0.5 |            0 |            0 |              |
-## -------------------------------------------------------------------------------------------------------------------------
-## |            4 |            4 |            4 |            0 |            4 |            0 |            0 |           12 |
-## |              |        0.125 |        0.125 |            0 |        0.125 |            0 |            0 |              |
-## |              |         0.33 |         0.33 |            0 |         0.33 |            0 |            0 |         0.38 |
-## |              |         0.57 |          0.4 |            0 |          0.4 |            0 |            0 |              |
-## -------------------------------------------------------------------------------------------------------------------------
-## |            5 |            0 |            2 |            0 |            1 |            1 |            1 |            5 |
-## |              |            0 |        0.062 |            0 |        0.031 |        0.031 |        0.031 |              |
-## |              |            0 |          0.4 |            0 |          0.2 |          0.2 |          0.2 |         0.16 |
-## |              |            0 |          0.2 |            0 |          0.1 |            1 |            1 |              |
-## -------------------------------------------------------------------------------------------------------------------------
-## | Column Total |            7 |           10 |            3 |           10 |            1 |            1 |           32 |
-## |              |        0.219 |        0.312 |        0.094 |        0.312 |        0.031 |        0.031 |              |
-## -------------------------------------------------------------------------------------------------------------------------
-
-
- - - -
- - - -
- - - - - diff --git a/docs/articles/descriptive-stats_files/figure-html/mosaic-1.png b/docs/articles/descriptive-stats_files/figure-html/mosaic-1.png deleted file mode 100644 index cd7738a..0000000 Binary files a/docs/articles/descriptive-stats_files/figure-html/mosaic-1.png and /dev/null differ diff --git a/docs/articles/distributions.html b/docs/articles/distributions.html deleted file mode 100644 index d1d7c6a..0000000 --- a/docs/articles/distributions.html +++ /dev/null @@ -1,596 +0,0 @@ - - - - - - - -Exploring Distributions • descriptr - - - - - - - - - -
-
- - - -
-
- - - - -

In exploring statistical distributions, we focus on the following:

-
    -
  • what influences the shape of a distribution
  • -
  • calculate probability from a given quantile
  • -
  • calculate quantiles out of given probability
  • -
-

To explore the above 3 concepts, we have defined functions for the following distributions:

-
    -
  • Normal
  • -
  • Binomial
  • -
  • Chi Square
  • -
  • F
  • -
  • t
  • -
-
-

-Normal Distribution

-
-

-Distribution Shape

-

Visualize how changes in mean and standard deviation affect the shape of the normal distribution.

-
-
-Input
-
    -
  • mean: mean of the normal distribution
  • -
  • sd: standard deviation of the normal distribution
  • -
-
-
-
-Output
-
    -
  • Normal distribution plot
  • -
-
dist_norm_plot(mean = 2, sd = 0.6)
-
## Warning in dist_norm_plot(mean = 2, sd = 0.6): `dist_normal_plot()`
-## has been soft deprecated and will be removed in the next version of
-## descriptr. Please use the vistributions package for visualizing probability
-## distributions.
-

-
-
-
-

-Percentiles

-
-

-Calculate and visualize quantiles out of given probability.

-
-
-Input
-
    -
  • probs: a probability value
  • -
  • mean: mean of the normal distribution
  • -
  • sd: standard deviation of the normal distribution
  • -
  • type: lower/upper tail
  • -
-

Suppose X, the grade on a exam, is normally distributed with mean 60 and standard deviation 3. The teacher wants to give 10% of the class an A. What should be the cutoff to determine who gets an A?

-
dist_norm_perc(0.10, 60, 3, 'upper')
-
## Warning in dist_norm_perc(0.1, 60, 3, "upper"): `dist_normal_perc()`
-## has been soft deprecated and will be removed in the next version of
-## descriptr. Please use the vistributions package for visualizing probability
-## distributions.
-

-

The teacher wants to give lower 15% of the class a D. What cutoff should the teacher use to determine who gets an D?

-
dist_norm_perc(0.85, 60, 3, 'lower')
-
## Warning in dist_norm_perc(0.85, 60, 3, "lower"): `dist_normal_perc()`
-## has been soft deprecated and will be removed in the next version of
-## descriptr. Please use the vistributions package for visualizing probability
-## distributions.
-

-

The teacher wants to give middle 50% of the class a B. What cutoff should the teacher use to determine who gets an B?

-
dist_norm_perc(0.5, 60, 3, 'both')
-
## Warning in dist_norm_perc(0.5, 60, 3, "both"): `dist_normal_perc()`
-## has been soft deprecated and will be removed in the next version of
-## descriptr. Please use the vistributions package for visualizing probability
-## distributions.
-

-
-
-
-
-

-Probabilities

-
-

-Calculate and visualize probability from a given quantile

-
-
-Input
-
    -
  • perc: a quantile value
  • -
  • mean: mean of the normal distribution
  • -
  • sd: standard deviation of the normal distribution
  • -
  • type: lower/upper/both tail
  • -
-

Let X be the IQ of a randomly selected student of a school. Assume X ~ N(90, 4). What is the probability that a randomly selected student has an IQ below 80?

-
dist_norm_prob(80, mean = 90, sd = 4)
-
## Warning in dist_norm_prob(80, mean = 90, sd = 4): `dist_normal_prob()`
-## has been soft deprecated and will be removed in the next version of
-## descriptr. Please use the vistributions package for visualizing probability
-## distributions.
-

-

What is the probability that a randomly selected student has an IQ above 100?

-
dist_norm_prob(100, mean = 90, sd = 4, type = 'upper')
-
## Warning in dist_norm_prob(100, mean = 90, sd = 4, type = "upper"):
-## `dist_normal_prob()` has been soft deprecated and will be removed in
-## the next version of descriptr. Please use the vistributions package for
-## visualizing probability distributions.
-

-

What is the probability that a randomly selected student has an IQ between 85 and 100?

-
dist_norm_prob(c(85, 100), mean = 90, sd = 4, type = 'both')
-
## Warning in dist_norm_prob(c(85, 100), mean = 90, sd = 4, type = "both"):
-## `dist_normal_prob()` has been soft deprecated and will be removed in
-## the next version of descriptr. Please use the vistributions package for
-## visualizing probability distributions.
-

-
-
-
-
-
-

-Binomial Distribution

-
-

-Distribution Shape

-

Visualize how changes in number of trials and the probability of success affect the shape of the binomial distribution.

- -
## Warning in dist_binom_plot(10, 0.3): `dist_binom_plot()` has been soft
-## deprecated and will be removed in the next version of descriptr. Please use
-## the vistributions package for visualizing probability distributions.
-

-
-
-

-Percentiles

-
-

-Calculate and visualize quantiles out of given probability

-
-
-Input
-
    -
  • p: a single aggregated probability of multiple trials
  • -
  • n: the number of trials
  • -
  • tp: the probability of success in a trial
  • -
  • type: lower/upper tail
  • -
-
dist_binom_perc(10, 0.5, 0.05)
-
## Warning in dist_binom_perc(10, 0.5, 0.05): `dist_binom_perc()` has been
-## soft deprecated and will be removed in the next version of descriptr.
-## Please use the vistributions package for visualizing probability
-## distributions.
-

-
dist_binom_perc(10, 0.5, 0.05, 'upper')
-
## Warning in dist_binom_perc(10, 0.5, 0.05, "upper"): `dist_binom_perc()`
-## has been soft deprecated and will be removed in the next version of
-## descriptr. Please use the vistributions package for visualizing probability
-## distributions.
-

-
-
-
-
-

-Probabilities

-
-

-Calculate and visualize probability from a given quantile

-
-
-Input
-
    -
  • p: probability of success
  • -
  • n: the number of trials
  • -
  • s: number of success in a trial
  • -
  • type: lower/upper/interval/exact tail
  • -
-

Assume twenty-percent (20%) of Magemill have no health insurance. Randomly sample n = 12 Magemillians. Let X denote the number in the sample with no health insurance. What is the probability that exactly 4 of the 15 sampled have no health insurance?

-
dist_binom_prob(12, 0.2, 4, type = 'exact')
-
## Warning in dist_binom_prob(12, 0.2, 4, type = "exact"): `dist_binom_prob()`
-## has been soft deprecated and will be removed in the next version of
-## descriptr. Please use the vistributions package for visualizing probability
-## distributions.
-

-

What is the probability that at most one of those sampled has no health insurance?

-
dist_binom_prob(12, 0.2, 1, 'lower')
-
## Warning in dist_binom_prob(12, 0.2, 1, "lower"): `dist_binom_prob()`
-## has been soft deprecated and will be removed in the next version of
-## descriptr. Please use the vistributions package for visualizing probability
-## distributions.
-

-

What is the probability that more than seven have no health insurance?

-
dist_binom_prob(12, 0.2, 8, 'upper')
-
## Warning in dist_binom_prob(12, 0.2, 8, "upper"): `dist_binom_prob()`
-## has been soft deprecated and will be removed in the next version of
-## descriptr. Please use the vistributions package for visualizing probability
-## distributions.
-

-

What is the probability that fewer than 5 have no health insurance?

-
dist_binom_prob(12, 0.2, c(0, 4), 'interval')
-
## Warning in dist_binom_prob(12, 0.2, c(0, 4), "interval"):
-## `dist_binom_prob()` has been soft deprecated and will be removed in
-## the next version of descriptr. Please use the vistributions package for
-## visualizing probability distributions.
-

-
-
-
-
-
-

-Chi Square Distribution

-
-

-Distribution Shape

-

Visualize how changes in degrees of freedom affect the shape of the chi square distribution.

- -
## Warning in dist_chi_plot(df = 5): `dist_chi_plot()` has been soft
-## deprecated and will be removed in the next version of descriptr. Please use
-## the vistributions package for visualizing probability distributions.
-
dist_chi_plot(df = 5, normal = TRUE)
-
## Warning in dist_chi_plot(df = 5, normal = TRUE): `dist_chi_plot()`
-## has been soft deprecated and will be removed in the next version of
-## descriptr. Please use the vistributions package for visualizing probability
-## distributions.
-
-
-

-Percentiles

-
-

-Calculate quantiles out of given probability

-
-
-Input
-
    -
  • probs: a probability value
  • -
  • df: degrees of freedom
  • -
  • type: lower/upper tail
  • -
-

Let X be a chi-square random variable with 8 degrees of freedom. What is the upper fifth percentile?

-
dist_chi_perc(0.05, 8, 'upper')
-
## Warning in dist_chi_perc(0.05, 8, "upper"): `dist_chi_perc()` has been soft
-## deprecated and will be removed in the next version of descriptr. Please use
-## the vistributions package for visualizing probability distributions.
-

-

What is the tenth percentile?

-
dist_chi_perc(0.10, 8, 'lower')
-
## Warning in dist_chi_perc(0.1, 8, "lower"): `dist_chi_perc()` has been soft
-## deprecated and will be removed in the next version of descriptr. Please use
-## the vistributions package for visualizing probability distributions.
-

-
-
-
-
-

-Probability

-
-

-Calculate probability from a given quantile.

-
-
-Input
-
    -
  • perc: a quantile value
  • -
  • df: degrees of freedom
  • -
  • type: lower/upper tail
  • -
-

What is the probability that a chi-square random variable with 12 degrees of freedom is greater than 8.79?

-
dist_chi_prob(8.79, 12, 'upper')
-

-
## Warning in dist_chi_prob(8.79, 12, "upper"): `dist_chi_prob()` has been
-## soft deprecated and will be removed in the next version of descriptr.
-## Please use the vistributions package for visualizing probability
-## distributions.
-

-

What is the probability that a chi-square random variable with 12 degrees of freedom is greater than 8.62?

-
dist_chi_prob(8.62, 12, 'lower')
-

-
## Warning in dist_chi_prob(8.62, 12, "lower"): `dist_chi_prob()` has been
-## soft deprecated and will be removed in the next version of descriptr.
-## Please use the vistributions package for visualizing probability
-## distributions.
-

-
-
-
-
-
-

-F Distribution

-
-

-Distribution Shape

-

Visualize how changes in degrees of freedom affect the shape of the F distribution.

- -
## Warning in dist_f_plot(): `dist_f_plot()` has been soft deprecated and will
-## be removed in the next version of descriptr. Please use the vistributions
-## package for visualizing probability distributions.
-

-
dist_f_plot(6, 10, normal = TRUE)
-
## Warning in dist_f_plot(6, 10, normal = TRUE): `dist_f_plot()` has been soft
-## deprecated and will be removed in the next version of descriptr. Please use
-## the vistributions package for visualizing probability distributions.
-

-
-
-

-Percentiles

-
-

-Calculate quantiles out of given probability

-
-
-Input
-
    -
  • probs: a probability value
  • -
  • num_df: nmerator degrees of freedom
  • -
  • den_df: denominator degrees of freedom
  • -
  • type: lower/upper tail
  • -
-

Let X be an F random variable with 4 numerator degrees of freedom and 5 denominator degrees of freedom. What is the upper twenth percentile?

-
dist_f_perc(0.20, 4, 5, 'upper')
-
## Warning in dist_f_perc(0.2, 4, 5, "upper"): `dist_f_perc()` has been soft
-## deprecated and will be removed in the next version of descriptr. Please use
-## the vistributions package for visualizing probability distributions.
-

-

What is the 35th percentile?

-
dist_f_perc(0.35, 4, 5, 'lower')
-
## Warning in dist_f_perc(0.35, 4, 5, "lower"): `dist_f_perc()` has been soft
-## deprecated and will be removed in the next version of descriptr. Please use
-## the vistributions package for visualizing probability distributions.
-

-
-
-
-
-

-Probabilities

-
-

-Calculate probability from a given quantile.

-
-
-Input
-
    -
  • perc: a quantile value
  • -
  • num_df: nmerator degrees of freedom
  • -
  • den_df: denominator degrees of freedom
  • -
  • type: lower/upper tail
  • -
-

What is the probability that an F random variable with 4 numerator degrees of freedom and 5 denominator degrees of freedom is greater than 3.89?

-
dist_f_prob(3.89, 4, 5, 'upper')
-
## Warning in dist_f_prob(3.89, 4, 5, "upper"): `dist_f_prob()` has been soft
-## deprecated and will be removed in the next version of descriptr. Please use
-## the vistributions package for visualizing probability distributions.
-

-

What is the probability that an F random variable with 4 numerator degrees of freedom and 5 denominator degrees of freedom is less than 2.63?

-
dist_f_prob(2.63, 4, 5, 'lower')
-
## Warning in dist_f_prob(2.63, 4, 5, "lower"): `dist_f_prob()` has been soft
-## deprecated and will be removed in the next version of descriptr. Please use
-## the vistributions package for visualizing probability distributions.
-

-
-
-
-
-
-

-t Distribution

-
-

-Distribution Shape

-

Visualize how degrees of freedom affect the shape of t distribution.

-
dist_t_plot(df = 8)
-
## Warning in dist_t_plot(df = 8): `dist_t_plot()` has been soft deprecated
-## and will be removed in the next version of descriptr. Please use the
-## vistributions package for visualizing probability distributions.
-

-
-
-

-Percentiles

-
-

-Calculate quantiles out of given probability

-
-
-Input
-
    -
  • probs: a probability value
  • -
  • df: degrees of freedom
  • -
  • type: lower/upper/both tail
  • -
-

What is the upper fifteenth percentile?

-
dist_t_perc(0.15, 8, 'upper')
-
## Warning in dist_t_perc(0.15, 8, "upper"): `dist_t_perc()` has been soft
-## deprecated and will be removed in the next version of descriptr. Please use
-## the vistributions package for visualizing probability distributions.
-

-

What is the eleventh percentile?

-
dist_t_perc(0.11, 8, 'lower')
-
## Warning in dist_t_perc(0.11, 8, "lower"): `dist_t_perc()` has been soft
-## deprecated and will be removed in the next version of descriptr. Please use
-## the vistributions package for visualizing probability distributions.
-

-

What is the area of the curve that has 95% of the t values?

-
dist_t_perc(0.8, 8, 'both')
-
## Warning in dist_t_perc(0.8, 8, "both"): `dist_t_perc()` has been soft
-## deprecated and will be removed in the next version of descriptr. Please use
-## the vistributions package for visualizing probability distributions.
-

-
-
-
-
-

-Probabilities

-
-

-Calculate probability from a given quantile.

-
-
-Input
-
    -
  • perc: a quantile value
  • -
  • df: degrees of freedom
  • -
  • type: lower/upper/interval/both tail
  • -
-

Let T follow a t-distribution with r = 6 df.

-

What is the probability that the value of T is less than 2?

-
dist_t_prob(2, 6, 'lower')
-
## Warning in dist_t_prob(2, 6, "lower"): `dist_t_prob()` has been soft
-## deprecated and will be removed in the next version of descriptr. Please use
-## the vistributions package for visualizing probability distributions.
-

-

What is the probability that the value of T is greater than 2?

-
dist_t_prob(2, 6, 'upper')
-
## Warning in dist_t_prob(2, 6, "upper"): `dist_t_prob()` has been soft
-## deprecated and will be removed in the next version of descriptr. Please use
-## the vistributions package for visualizing probability distributions.
-

-

What is the probability that the value of T is between -2 and 2?

-
dist_t_prob(2, 6, 'both')
-
## Warning in dist_t_prob(2, 6, "both"): `dist_t_prob()` has been soft
-## deprecated and will be removed in the next version of descriptr. Please use
-## the vistributions package for visualizing probability distributions.
-

-

What is the probability that the absolute value of T is greater than 2?

-
dist_t_prob(2, 6, 'interval')
-
## Warning in dist_t_prob(2, 6, "interval"): `dist_t_prob()` has been soft
-## deprecated and will be removed in the next version of descriptr. Please use
-## the vistributions package for visualizing probability distributions.
-

-
-
-
-
-
- - - -
- - - -
- - - - - diff --git a/docs/articles/distributions_files/figure-html/binom_per1-1.png b/docs/articles/distributions_files/figure-html/binom_per1-1.png deleted file mode 100644 index d62da70..0000000 Binary files a/docs/articles/distributions_files/figure-html/binom_per1-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/binom_per2-1.png b/docs/articles/distributions_files/figure-html/binom_per2-1.png deleted file mode 100644 index 5c4518f..0000000 Binary files a/docs/articles/distributions_files/figure-html/binom_per2-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/binom_plot-1.png b/docs/articles/distributions_files/figure-html/binom_plot-1.png deleted file mode 100644 index 61c61cf..0000000 Binary files a/docs/articles/distributions_files/figure-html/binom_plot-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/binom_prob1-1.png b/docs/articles/distributions_files/figure-html/binom_prob1-1.png deleted file mode 100644 index b51f835..0000000 Binary files a/docs/articles/distributions_files/figure-html/binom_prob1-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/binom_prob2-1.png b/docs/articles/distributions_files/figure-html/binom_prob2-1.png deleted file mode 100644 index 066ce9c..0000000 Binary files a/docs/articles/distributions_files/figure-html/binom_prob2-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/binom_prob3-1.png b/docs/articles/distributions_files/figure-html/binom_prob3-1.png deleted file mode 100644 index 6a13a74..0000000 Binary files a/docs/articles/distributions_files/figure-html/binom_prob3-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/binom_prob4-1.png b/docs/articles/distributions_files/figure-html/binom_prob4-1.png deleted file mode 100644 index f58d754..0000000 Binary files a/docs/articles/distributions_files/figure-html/binom_prob4-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/chi_per1-1.png b/docs/articles/distributions_files/figure-html/chi_per1-1.png deleted file mode 100644 index c633f77..0000000 Binary files a/docs/articles/distributions_files/figure-html/chi_per1-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/chi_per2-1.png b/docs/articles/distributions_files/figure-html/chi_per2-1.png deleted file mode 100644 index b6e4742..0000000 Binary files a/docs/articles/distributions_files/figure-html/chi_per2-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/chi_prob1-1.png b/docs/articles/distributions_files/figure-html/chi_prob1-1.png deleted file mode 100644 index e3ad9fc..0000000 Binary files a/docs/articles/distributions_files/figure-html/chi_prob1-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/chi_prob1-2.png b/docs/articles/distributions_files/figure-html/chi_prob1-2.png deleted file mode 100644 index e3ad9fc..0000000 Binary files a/docs/articles/distributions_files/figure-html/chi_prob1-2.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/chi_prob2-1.png b/docs/articles/distributions_files/figure-html/chi_prob2-1.png deleted file mode 100644 index 024c37e..0000000 Binary files a/docs/articles/distributions_files/figure-html/chi_prob2-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/chi_prob2-2.png b/docs/articles/distributions_files/figure-html/chi_prob2-2.png deleted file mode 100644 index 024c37e..0000000 Binary files a/docs/articles/distributions_files/figure-html/chi_prob2-2.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/f_per1-1.png b/docs/articles/distributions_files/figure-html/f_per1-1.png deleted file mode 100644 index 4d1ff01..0000000 Binary files a/docs/articles/distributions_files/figure-html/f_per1-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/f_per2-1.png b/docs/articles/distributions_files/figure-html/f_per2-1.png deleted file mode 100644 index c54f75b..0000000 Binary files a/docs/articles/distributions_files/figure-html/f_per2-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/f_plot-1.png b/docs/articles/distributions_files/figure-html/f_plot-1.png deleted file mode 100644 index 13568e4..0000000 Binary files a/docs/articles/distributions_files/figure-html/f_plot-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/f_plot-2.png b/docs/articles/distributions_files/figure-html/f_plot-2.png deleted file mode 100644 index ee43692..0000000 Binary files a/docs/articles/distributions_files/figure-html/f_plot-2.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/f_prob1-1.png b/docs/articles/distributions_files/figure-html/f_prob1-1.png deleted file mode 100644 index 2eb3526..0000000 Binary files a/docs/articles/distributions_files/figure-html/f_prob1-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/f_prob2-1.png b/docs/articles/distributions_files/figure-html/f_prob2-1.png deleted file mode 100644 index fc5892a..0000000 Binary files a/docs/articles/distributions_files/figure-html/f_prob2-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/norm_per1-1.png b/docs/articles/distributions_files/figure-html/norm_per1-1.png deleted file mode 100644 index e029f59..0000000 Binary files a/docs/articles/distributions_files/figure-html/norm_per1-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/norm_per2-1.png b/docs/articles/distributions_files/figure-html/norm_per2-1.png deleted file mode 100644 index cc6a45a..0000000 Binary files a/docs/articles/distributions_files/figure-html/norm_per2-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/norm_per3-1.png b/docs/articles/distributions_files/figure-html/norm_per3-1.png deleted file mode 100644 index 500f8f3..0000000 Binary files a/docs/articles/distributions_files/figure-html/norm_per3-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/norm_plot-1.png b/docs/articles/distributions_files/figure-html/norm_plot-1.png deleted file mode 100644 index d0cdae5..0000000 Binary files a/docs/articles/distributions_files/figure-html/norm_plot-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/norm_prob1-1.png b/docs/articles/distributions_files/figure-html/norm_prob1-1.png deleted file mode 100644 index c1c560a..0000000 Binary files a/docs/articles/distributions_files/figure-html/norm_prob1-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/norm_prob2-1.png b/docs/articles/distributions_files/figure-html/norm_prob2-1.png deleted file mode 100644 index 175dbeb..0000000 Binary files a/docs/articles/distributions_files/figure-html/norm_prob2-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/norm_prob3-1.png b/docs/articles/distributions_files/figure-html/norm_prob3-1.png deleted file mode 100644 index 72fa252..0000000 Binary files a/docs/articles/distributions_files/figure-html/norm_prob3-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/t_per1-1.png b/docs/articles/distributions_files/figure-html/t_per1-1.png deleted file mode 100644 index bf536ad..0000000 Binary files a/docs/articles/distributions_files/figure-html/t_per1-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/t_per2-1.png b/docs/articles/distributions_files/figure-html/t_per2-1.png deleted file mode 100644 index b05a16f..0000000 Binary files a/docs/articles/distributions_files/figure-html/t_per2-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/t_per3-1.png b/docs/articles/distributions_files/figure-html/t_per3-1.png deleted file mode 100644 index 9662b64..0000000 Binary files a/docs/articles/distributions_files/figure-html/t_per3-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/t_plot-1.png b/docs/articles/distributions_files/figure-html/t_plot-1.png deleted file mode 100644 index fa1a62f..0000000 Binary files a/docs/articles/distributions_files/figure-html/t_plot-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/t_prob1-1.png b/docs/articles/distributions_files/figure-html/t_prob1-1.png deleted file mode 100644 index ea8cbd2..0000000 Binary files a/docs/articles/distributions_files/figure-html/t_prob1-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/t_prob2-1.png b/docs/articles/distributions_files/figure-html/t_prob2-1.png deleted file mode 100644 index 86fe846..0000000 Binary files a/docs/articles/distributions_files/figure-html/t_prob2-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/t_prob3-1.png b/docs/articles/distributions_files/figure-html/t_prob3-1.png deleted file mode 100644 index 2a5349e..0000000 Binary files a/docs/articles/distributions_files/figure-html/t_prob3-1.png and /dev/null differ diff --git a/docs/articles/distributions_files/figure-html/t_prob4-1.png b/docs/articles/distributions_files/figure-html/t_prob4-1.png deleted file mode 100644 index 16de6c3..0000000 Binary files a/docs/articles/distributions_files/figure-html/t_prob4-1.png and /dev/null differ diff --git a/docs/articles/index.html b/docs/articles/index.html index 38891da..1843bdf 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -1,6 +1,6 @@ - + @@ -9,21 +9,23 @@ Articles • descriptr - + - - + + - + - + + + + - @@ -31,8 +33,10 @@ + - + + - - - - - -Media • descriptr - - - - - - -
-
- - - -
-
- - - - -
-
-

- Shiny App Demo

- -
-
-
- - - -
- - - -
- - - diff --git a/docs/articles/tests_and_coverage.html b/docs/articles/tests_and_coverage.html index 0ac84b5..263dc30 100644 --- a/docs/articles/tests_and_coverage.html +++ b/docs/articles/tests_and_coverage.html @@ -1,18 +1,18 @@ - + Tests and Coverage • descriptr - - - - + + + + - @@ -22,14 +22,15 @@
diff --git a/docs/articles/visualization.html b/docs/articles/visualization.html new file mode 100644 index 0000000..7b87f58 --- /dev/null +++ b/docs/articles/visualization.html @@ -0,0 +1,219 @@ + + + + + + + +Visualization • descriptr + + + + + + + + + +
+
+ + + +
+
+ + + + +
+

+Introduction

+

In this document, we will introduce you to functions for generating different types of plots.

+
+ +
+

+Continuous Data

+

The following functions will create plots for all or subset of continuous variables in the data set.

+
+

+Histograms

+ +

+
+
+

+Density Plots

+ +

+
+
+

+Box Plots

+ +

+
+
+

+Scatter Plots

+
ds_plot_scatter(mtcarz, mpg, disp, hp)
+

+
+
+
+

+Categorical Data

+

The following functions will create plots for all or subset of categorical variables in the data set.

+
+

+Bar Plot

+
ds_plot_bar(mtcarz)
+

+
+
+

+Stacked Bar Plot

+
ds_plot_bar_stacked(mtcarz, cyl, gear, am)
+

+
+
+

+Grouped Bar Plot

+
ds_plot_bar_grouped(mtcarz, cyl, gear, am)
+

+
+
+

+Grouped Box Plots

+
ds_plot_box_group(mtcarz, cyl, gear, mpg, disp)
+

+
+
+
+ + + +
+ + + +
+ + + + + diff --git a/docs/articles/visualization_files/figure-html/bar-1.png b/docs/articles/visualization_files/figure-html/bar-1.png new file mode 100644 index 0000000..ab82e32 Binary files /dev/null and b/docs/articles/visualization_files/figure-html/bar-1.png differ diff --git a/docs/articles/visualization_files/figure-html/bar-2.png b/docs/articles/visualization_files/figure-html/bar-2.png new file mode 100644 index 0000000..23fa281 Binary files /dev/null and b/docs/articles/visualization_files/figure-html/bar-2.png differ diff --git a/docs/articles/visualization_files/figure-html/bar_grouped-1.png b/docs/articles/visualization_files/figure-html/bar_grouped-1.png new file mode 100644 index 0000000..1671415 Binary files /dev/null and b/docs/articles/visualization_files/figure-html/bar_grouped-1.png differ diff --git a/docs/articles/visualization_files/figure-html/bar_grouped-2.png b/docs/articles/visualization_files/figure-html/bar_grouped-2.png new file mode 100644 index 0000000..dc76a34 Binary files /dev/null and b/docs/articles/visualization_files/figure-html/bar_grouped-2.png differ diff --git a/docs/articles/visualization_files/figure-html/bar_stacked-1.png b/docs/articles/visualization_files/figure-html/bar_stacked-1.png new file mode 100644 index 0000000..f8c51e3 Binary files /dev/null and b/docs/articles/visualization_files/figure-html/bar_stacked-1.png differ diff --git a/docs/articles/visualization_files/figure-html/bar_stacked-2.png b/docs/articles/visualization_files/figure-html/bar_stacked-2.png new file mode 100644 index 0000000..1bc52a8 Binary files /dev/null and b/docs/articles/visualization_files/figure-html/bar_stacked-2.png differ diff --git a/docs/articles/visualization_files/figure-html/box_group-1.png b/docs/articles/visualization_files/figure-html/box_group-1.png new file mode 100644 index 0000000..39325dd Binary files /dev/null and b/docs/articles/visualization_files/figure-html/box_group-1.png differ diff --git a/docs/articles/visualization_files/figure-html/box_single-1.png b/docs/articles/visualization_files/figure-html/box_single-1.png new file mode 100644 index 0000000..53a3d28 Binary files /dev/null and b/docs/articles/visualization_files/figure-html/box_single-1.png differ diff --git a/docs/articles/visualization_files/figure-html/box_single-2.png b/docs/articles/visualization_files/figure-html/box_single-2.png new file mode 100644 index 0000000..9b40c23 Binary files /dev/null and b/docs/articles/visualization_files/figure-html/box_single-2.png differ diff --git a/docs/articles/visualization_files/figure-html/density-1.png b/docs/articles/visualization_files/figure-html/density-1.png new file mode 100644 index 0000000..522139b Binary files /dev/null and b/docs/articles/visualization_files/figure-html/density-1.png differ diff --git a/docs/articles/visualization_files/figure-html/density-2.png b/docs/articles/visualization_files/figure-html/density-2.png new file mode 100644 index 0000000..2201db5 Binary files /dev/null and b/docs/articles/visualization_files/figure-html/density-2.png differ diff --git a/docs/articles/visualization_files/figure-html/hist-1.png b/docs/articles/visualization_files/figure-html/hist-1.png new file mode 100644 index 0000000..8d24604 Binary files /dev/null and b/docs/articles/visualization_files/figure-html/hist-1.png differ diff --git a/docs/articles/visualization_files/figure-html/hist-2.png b/docs/articles/visualization_files/figure-html/hist-2.png new file mode 100644 index 0000000..2392c90 Binary files /dev/null and b/docs/articles/visualization_files/figure-html/hist-2.png differ diff --git a/docs/articles/visualization_files/figure-html/scatter-1.png b/docs/articles/visualization_files/figure-html/scatter-1.png new file mode 100644 index 0000000..ecea6e3 Binary files /dev/null and b/docs/articles/visualization_files/figure-html/scatter-1.png differ diff --git a/docs/articles/visualization_files/figure-html/scatter-2.png b/docs/articles/visualization_files/figure-html/scatter-2.png new file mode 100644 index 0000000..96dda45 Binary files /dev/null and b/docs/articles/visualization_files/figure-html/scatter-2.png differ diff --git a/docs/authors.html b/docs/authors.html index 54b964b..c0896ae 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -60,7 +60,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -77,10 +77,13 @@ diff --git a/docs/docsearch.css b/docs/docsearch.css index c524034..e5f1fe1 100644 --- a/docs/docsearch.css +++ b/docs/docsearch.css @@ -111,23 +111,26 @@ } .algolia-autocomplete .algolia-docsearch-footer { - float: none; - width: auto; - height: auto; - padding: .75rem 1rem 0; - font-size: .95rem; - line-height: 1; - color: #767676; - background-color: rgb(255, 255, 255); - border-top: 1px solid rgba(0, 0, 0, .1) + width: 110px; + height: 20px; + z-index: 3; + margin-top: 10.66667px; + float: right; + font-size: 0; + line-height: 0; } .algolia-autocomplete .algolia-docsearch-footer--logo { - display: inline; - overflow: visible; - color: inherit; - text-indent: 0; - background: 0 0 + background-image: url("data:image/svg+xml;utf8,"); + background-repeat: no-repeat; + background-position: 50%; + background-size: 100%; + overflow: hidden; + text-indent: -9000px; + width: 100%; + height: 100%; + display: block; + transform: translate(-8px); } .algolia-autocomplete .algolia-docsearch-suggestion--highlight { diff --git a/docs/docsearch.js b/docs/docsearch.js new file mode 100644 index 0000000..b35504c --- /dev/null +++ b/docs/docsearch.js @@ -0,0 +1,85 @@ +$(function() { + + // register a handler to move the focus to the search bar + // upon pressing shift + "/" (i.e. "?") + $(document).on('keydown', function(e) { + if (e.shiftKey && e.keyCode == 191) { + e.preventDefault(); + $("#search-input").focus(); + } + }); + + $(document).ready(function() { + // do keyword highlighting + /* modified from https://jsfiddle.net/julmot/bL6bb5oo/ */ + var mark = function() { + + var referrer = document.URL ; + var paramKey = "q" ; + + if (referrer.indexOf("?") !== -1) { + var qs = referrer.substr(referrer.indexOf('?') + 1); + var qs_noanchor = qs.split('#')[0]; + var qsa = qs_noanchor.split('&'); + var keyword = ""; + + for (var i = 0; i < qsa.length; i++) { + var currentParam = qsa[i].split('='); + + if (currentParam.length !== 2) { + continue; + } + + if (currentParam[0] == paramKey) { + keyword = decodeURIComponent(currentParam[1].replace(/\+/g, "%20")); + } + } + + if (keyword !== "") { + $(".contents").unmark({ + done: function() { + $(".contents").mark(keyword); + } + }); + } + } + }; + + mark(); + }); +}); + +/* Search term highlighting ------------------------------*/ + +function matchedWords(hit) { + var words = []; + + var hierarchy = hit._highlightResult.hierarchy; + // loop to fetch from lvl0, lvl1, etc. + for (var idx in hierarchy) { + words = words.concat(hierarchy[idx].matchedWords); + } + + var content = hit._highlightResult.content; + if (content) { + words = words.concat(content.matchedWords); + } + + // return unique words + var words_uniq = [...new Set(words)]; + return words_uniq; +} + +function updateHitURL(hit) { + + var words = matchedWords(hit); + var url = ""; + + if (hit.anchor) { + url = hit.url_without_anchor + '?q=' + escape(words.join(" ")) + '#' + hit.anchor; + } else { + url = hit.url + '?q=' + escape(words.join(" ")); + } + + return url; +} diff --git a/docs/index.html b/docs/index.html index b66354d..381f4d2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -31,12 +31,7 @@ - - - + - + @@ -9,21 +9,23 @@ Changelog • descriptr - + - - + + - + - + + + + - @@ -31,8 +33,10 @@ + - + + + + + + + + + +Multiple One & Two Way Tables — ds_auto_freq_table • descriptr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
+ +
+
+ + +
+ +

ds_auto_freq_table creates multiple one way tables by creating +a frequency table for each categorical variable in a data frame. +ds_auto_cross_table creates multiple two way tables by creating a cross +table for each unique pair of categorical variables in a data frame.

+ +
+ +
ds_auto_freq_table(data, ...)
+
+ds_auto_cross_table(data, ...)
+ +

Arguments

+ + + + + + + + + + +
data

A data.frame or tibble.

...

Column(s) in data.

+ +

Details

+ +

ds_auto_freq_table is a extension of the ds_freq_table +function. It creates a frequency table for each categorical variable in the +dataframe. ds_auto_cross_table is a extension of the ds_cross_table +function. It creates a two way table for each unique pair of categorical +variables in the dataframe.

+ +

Deprecated Functions

+ + +

ds_oway_tables() and ds_tway_tables() have been deprecated. +Instead use ds_auto_freq_table() and ds_auto_cross_table().

+ +

See also

+ +

link{ds_freq_table} link{ds_cross_table}

+ + +

Examples

+
# multiple one way tables +ds_auto_freq_table(mtcarz)
#> Variable: cyl +#> ----------------------------------------------------------------------- +#> Levels Frequency Cum Frequency Percent Cum Percent +#> ----------------------------------------------------------------------- +#> 4 11 11 34.38 34.38 +#> ----------------------------------------------------------------------- +#> 6 7 18 21.88 56.25 +#> ----------------------------------------------------------------------- +#> 8 14 32 43.75 100 +#> ----------------------------------------------------------------------- +#> Total 32 - 100.00 - +#> ----------------------------------------------------------------------- +#> +#> Variable: vs +#> ----------------------------------------------------------------------- +#> Levels Frequency Cum Frequency Percent Cum Percent +#> ----------------------------------------------------------------------- +#> 0 18 18 56.25 56.25 +#> ----------------------------------------------------------------------- +#> 1 14 32 43.75 100 +#> ----------------------------------------------------------------------- +#> Total 32 - 100.00 - +#> ----------------------------------------------------------------------- +#> +#> Variable: am +#> ----------------------------------------------------------------------- +#> Levels Frequency Cum Frequency Percent Cum Percent +#> ----------------------------------------------------------------------- +#> 0 19 19 59.38 59.38 +#> ----------------------------------------------------------------------- +#> 1 13 32 40.62 100 +#> ----------------------------------------------------------------------- +#> Total 32 - 100.00 - +#> ----------------------------------------------------------------------- +#> +#> Variable: gear +#> ----------------------------------------------------------------------- +#> Levels Frequency Cum Frequency Percent Cum Percent +#> ----------------------------------------------------------------------- +#> 3 15 15 46.88 46.88 +#> ----------------------------------------------------------------------- +#> 4 12 27 37.5 84.38 +#> ----------------------------------------------------------------------- +#> 5 5 32 15.62 100 +#> ----------------------------------------------------------------------- +#> Total 32 - 100.00 - +#> ----------------------------------------------------------------------- +#> +#> Variable: carb +#> ----------------------------------------------------------------------- +#> Levels Frequency Cum Frequency Percent Cum Percent +#> ----------------------------------------------------------------------- +#> 1 7 7 21.88 21.88 +#> ----------------------------------------------------------------------- +#> 2 10 17 31.25 53.12 +#> ----------------------------------------------------------------------- +#> 3 3 20 9.38 62.5 +#> ----------------------------------------------------------------------- +#> 4 10 30 31.25 93.75 +#> ----------------------------------------------------------------------- +#> 6 1 31 3.12 96.88 +#> ----------------------------------------------------------------------- +#> 8 1 32 3.12 100 +#> ----------------------------------------------------------------------- +#> Total 32 - 100.00 - +#> ----------------------------------------------------------------------- +#>
ds_auto_freq_table(mtcarz, cyl, gear)
#> Variable: cyl +#> ----------------------------------------------------------------------- +#> Levels Frequency Cum Frequency Percent Cum Percent +#> ----------------------------------------------------------------------- +#> 4 11 11 34.38 34.38 +#> ----------------------------------------------------------------------- +#> 6 7 18 21.88 56.25 +#> ----------------------------------------------------------------------- +#> 8 14 32 43.75 100 +#> ----------------------------------------------------------------------- +#> Total 32 - 100.00 - +#> ----------------------------------------------------------------------- +#> +#> Variable: gear +#> ----------------------------------------------------------------------- +#> Levels Frequency Cum Frequency Percent Cum Percent +#> ----------------------------------------------------------------------- +#> 3 15 15 46.88 46.88 +#> ----------------------------------------------------------------------- +#> 4 12 27 37.5 84.38 +#> ----------------------------------------------------------------------- +#> 5 5 32 15.62 100 +#> ----------------------------------------------------------------------- +#> Total 32 - 100.00 - +#> ----------------------------------------------------------------------- +#>
+# multiple two way tables +ds_auto_cross_table(mtcarz)
#> Cell Contents +#> |---------------| +#> | Frequency | +#> | Percent | +#> | Row Pct | +#> | Col Pct | +#> |---------------| +#> +#> Total Observations: 32 +#> +#> cyl vs vs +#> ------------------------------------------------------------- +#> | | vs | +#> ------------------------------------------------------------- +#> | cyl | 0 | 1 | Row Total | +#> ------------------------------------------------------------- +#> | 4 | 1 | 10 | 11 | +#> | | 0.031 | 0.312 | | +#> | | 0.09 | 0.91 | 0.34 | +#> | | 0.06 | 0.71 | | +#> ------------------------------------------------------------- +#> | 6 | 3 | 4 | 7 | +#> | | 0.094 | 0.125 | | +#> | | 0.43 | 0.57 | 0.22 | +#> | | 0.17 | 0.29 | | +#> ------------------------------------------------------------- +#> | 8 | 14 | 0 | 14 | +#> | | 0.438 | 0 | | +#> | | 1 | 0 | 0.44 | +#> | | 0.78 | 0 | | +#> ------------------------------------------------------------- +#> | Column Total | 18 | 14 | 32 | +#> | | 0.563 | 0.437 | | +#> ------------------------------------------------------------- +#> +#> +#> cyl vs am +#> ------------------------------------------------------------- +#> | | am | +#> ------------------------------------------------------------- +#> | cyl | 0 | 1 | Row Total | +#> ------------------------------------------------------------- +#> | 4 | 3 | 8 | 11 | +#> | | 0.094 | 0.25 | | +#> | | 0.27 | 0.73 | 0.34 | +#> | | 0.16 | 0.62 | | +#> ------------------------------------------------------------- +#> | 6 | 4 | 3 | 7 | +#> | | 0.125 | 0.094 | | +#> | | 0.57 | 0.43 | 0.22 | +#> | | 0.21 | 0.23 | | +#> ------------------------------------------------------------- +#> | 8 | 12 | 2 | 14 | +#> | | 0.375 | 0.062 | | +#> | | 0.86 | 0.14 | 0.44 | +#> | | 0.63 | 0.15 | | +#> ------------------------------------------------------------- +#> | Column Total | 19 | 13 | 32 | +#> | | 0.594 | 0.406 | | +#> ------------------------------------------------------------- +#> +#> +#> cyl vs gear +#> ---------------------------------------------------------------------------- +#> | | gear | +#> ---------------------------------------------------------------------------- +#> | cyl | 3 | 4 | 5 | Row Total | +#> ---------------------------------------------------------------------------- +#> | 4 | 1 | 8 | 2 | 11 | +#> | | 0.031 | 0.25 | 0.062 | | +#> | | 0.09 | 0.73 | 0.18 | 0.34 | +#> | | 0.07 | 0.67 | 0.4 | | +#> ---------------------------------------------------------------------------- +#> | 6 | 2 | 4 | 1 | 7 | +#> | | 0.062 | 0.125 | 0.031 | | +#> | | 0.29 | 0.57 | 0.14 | 0.22 | +#> | | 0.13 | 0.33 | 0.2 | | +#> ---------------------------------------------------------------------------- +#> | 8 | 12 | 0 | 2 | 14 | +#> | | 0.375 | 0 | 0.062 | | +#> | | 0.86 | 0 | 0.14 | 0.44 | +#> | | 0.8 | 0 | 0.4 | | +#> ---------------------------------------------------------------------------- +#> | Column Total | 15 | 12 | 5 | 32 | +#> | | 0.468 | 0.375 | 0.155 | | +#> ---------------------------------------------------------------------------- +#> +#> +#> cyl vs carb +#> ------------------------------------------------------------------------------------------------------------------------- +#> | | carb | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | cyl | 1 | 2 | 3 | 4 | 6 | 8 | Row Total | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | 4 | 5 | 6 | 0 | 0 | 0 | 0 | 11 | +#> | | 0.156 | 0.188 | 0 | 0 | 0 | 0 | | +#> | | 0.45 | 0.55 | 0 | 0 | 0 | 0 | 0.34 | +#> | | 0.71 | 0.6 | 0 | 0 | 0 | 0 | | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | 6 | 2 | 0 | 0 | 4 | 1 | 0 | 7 | +#> | | 0.062 | 0 | 0 | 0.125 | 0.031 | 0 | | +#> | | 0.29 | 0 | 0 | 0.57 | 0.14 | 0 | 0.22 | +#> | | 0.29 | 0 | 0 | 0.4 | 1 | 0 | | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | 8 | 0 | 4 | 3 | 6 | 0 | 1 | 14 | +#> | | 0 | 0.125 | 0.094 | 0.188 | 0 | 0.031 | | +#> | | 0 | 0.29 | 0.21 | 0.43 | 0 | 0.07 | 0.44 | +#> | | 0 | 0.4 | 1 | 0.6 | 0 | 1 | | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | Column Total | 7 | 10 | 3 | 10 | 1 | 1 | 32 | +#> | | 0.218 | 0.313 | 0.094 | 0.313 | 0.031 | 0.031 | | +#> ------------------------------------------------------------------------------------------------------------------------- +#> +#> +#> vs vs am +#> ------------------------------------------------------------- +#> | | am | +#> ------------------------------------------------------------- +#> | vs | 0 | 1 | Row Total | +#> ------------------------------------------------------------- +#> | 0 | 12 | 6 | 18 | +#> | | 0.375 | 0.188 | | +#> | | 0.67 | 0.33 | 0.56 | +#> | | 0.63 | 0.46 | | +#> ------------------------------------------------------------- +#> | 1 | 7 | 7 | 14 | +#> | | 0.219 | 0.219 | | +#> | | 0.5 | 0.5 | 0.44 | +#> | | 0.37 | 0.54 | | +#> ------------------------------------------------------------- +#> | Column Total | 19 | 13 | 32 | +#> | | 0.594 | 0.407 | | +#> ------------------------------------------------------------- +#> +#> +#> vs vs gear +#> ---------------------------------------------------------------------------- +#> | | gear | +#> ---------------------------------------------------------------------------- +#> | vs | 3 | 4 | 5 | Row Total | +#> ---------------------------------------------------------------------------- +#> | 0 | 12 | 2 | 4 | 18 | +#> | | 0.375 | 0.062 | 0.125 | | +#> | | 0.67 | 0.11 | 0.22 | 0.56 | +#> | | 0.8 | 0.17 | 0.8 | | +#> ---------------------------------------------------------------------------- +#> | 1 | 3 | 10 | 1 | 14 | +#> | | 0.094 | 0.312 | 0.031 | | +#> | | 0.21 | 0.71 | 0.07 | 0.44 | +#> | | 0.2 | 0.83 | 0.2 | | +#> ---------------------------------------------------------------------------- +#> | Column Total | 15 | 12 | 5 | 32 | +#> | | 0.469 | 0.374 | 0.156 | | +#> ---------------------------------------------------------------------------- +#> +#> +#> vs vs carb +#> ------------------------------------------------------------------------------------------------------------------------- +#> | | carb | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | vs | 1 | 2 | 3 | 4 | 6 | 8 | Row Total | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | 0 | 0 | 5 | 3 | 8 | 1 | 1 | 18 | +#> | | 0 | 0.156 | 0.094 | 0.25 | 0.031 | 0.031 | | +#> | | 0 | 0.28 | 0.17 | 0.44 | 0.06 | 0.06 | 0.56 | +#> | | 0 | 0.5 | 1 | 0.8 | 1 | 1 | | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | 1 | 7 | 5 | 0 | 2 | 0 | 0 | 14 | +#> | | 0.219 | 0.156 | 0 | 0.062 | 0 | 0 | | +#> | | 0.5 | 0.36 | 0 | 0.14 | 0 | 0 | 0.44 | +#> | | 1 | 0.5 | 0 | 0.2 | 0 | 0 | | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | Column Total | 7 | 10 | 3 | 10 | 1 | 1 | 32 | +#> | | 0.219 | 0.312 | 0.094 | 0.312 | 0.031 | 0.031 | | +#> ------------------------------------------------------------------------------------------------------------------------- +#> +#> +#> am vs gear +#> ---------------------------------------------------------------------------- +#> | | gear | +#> ---------------------------------------------------------------------------- +#> | am | 3 | 4 | 5 | Row Total | +#> ---------------------------------------------------------------------------- +#> | 0 | 15 | 4 | 0 | 19 | +#> | | 0.469 | 0.125 | 0 | | +#> | | 0.79 | 0.21 | 0 | 0.59 | +#> | | 1 | 0.33 | 0 | | +#> ---------------------------------------------------------------------------- +#> | 1 | 0 | 8 | 5 | 13 | +#> | | 0 | 0.25 | 0.156 | | +#> | | 0 | 0.62 | 0.38 | 0.41 | +#> | | 0 | 0.67 | 1 | | +#> ---------------------------------------------------------------------------- +#> | Column Total | 15 | 12 | 5 | 32 | +#> | | 0.469 | 0.375 | 0.156 | | +#> ---------------------------------------------------------------------------- +#> +#> +#> am vs carb +#> ------------------------------------------------------------------------------------------------------------------------- +#> | | carb | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | am | 1 | 2 | 3 | 4 | 6 | 8 | Row Total | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | 0 | 3 | 6 | 3 | 7 | 0 | 0 | 19 | +#> | | 0.094 | 0.188 | 0.094 | 0.219 | 0 | 0 | | +#> | | 0.16 | 0.32 | 0.16 | 0.37 | 0 | 0 | 0.6 | +#> | | 0.43 | 0.6 | 1 | 0.7 | 0 | 0 | | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | 1 | 4 | 4 | 0 | 3 | 1 | 1 | 13 | +#> | | 0.125 | 0.125 | 0 | 0.094 | 0.031 | 0.031 | | +#> | | 0.31 | 0.31 | 0 | 0.23 | 0.08 | 0.08 | 0.41 | +#> | | 0.57 | 0.4 | 0 | 0.3 | 1 | 1 | | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | Column Total | 7 | 10 | 3 | 10 | 1 | 1 | 32 | +#> | | 0.219 | 0.313 | 0.094 | 0.313 | 0.031 | 0.031 | | +#> ------------------------------------------------------------------------------------------------------------------------- +#> +#> +#> gear vs carb +#> ------------------------------------------------------------------------------------------------------------------------- +#> | | carb | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | gear | 1 | 2 | 3 | 4 | 6 | 8 | Row Total | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | 3 | 3 | 4 | 3 | 5 | 0 | 0 | 15 | +#> | | 0.094 | 0.125 | 0.094 | 0.156 | 0 | 0 | | +#> | | 0.2 | 0.27 | 0.2 | 0.33 | 0 | 0 | 0.47 | +#> | | 0.43 | 0.4 | 1 | 0.5 | 0 | 0 | | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | 4 | 4 | 4 | 0 | 4 | 0 | 0 | 12 | +#> | | 0.125 | 0.125 | 0 | 0.125 | 0 | 0 | | +#> | | 0.33 | 0.33 | 0 | 0.33 | 0 | 0 | 0.38 | +#> | | 0.57 | 0.4 | 0 | 0.4 | 0 | 0 | | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | 5 | 0 | 2 | 0 | 1 | 1 | 1 | 5 | +#> | | 0 | 0.062 | 0 | 0.031 | 0.031 | 0.031 | | +#> | | 0 | 0.4 | 0 | 0.2 | 0.2 | 0.2 | 0.16 | +#> | | 0 | 0.2 | 0 | 0.1 | 1 | 1 | | +#> ------------------------------------------------------------------------------------------------------------------------- +#> | Column Total | 7 | 10 | 3 | 10 | 1 | 1 | 32 | +#> | | 0.219 | 0.312 | 0.094 | 0.312 | 0.031 | 0.031 | | +#> ------------------------------------------------------------------------------------------------------------------------- +#> +#>
ds_auto_cross_table(mtcarz, cyl, gear, am)
#> Cell Contents +#> |---------------| +#> | Frequency | +#> | Percent | +#> | Row Pct | +#> | Col Pct | +#> |---------------| +#> +#> Total Observations: 32 +#> +#> cyl vs gear +#> ---------------------------------------------------------------------------- +#> | | gear | +#> ---------------------------------------------------------------------------- +#> | cyl | 3 | 4 | 5 | Row Total | +#> ---------------------------------------------------------------------------- +#> | 4 | 1 | 8 | 2 | 11 | +#> | | 0.031 | 0.25 | 0.062 | | +#> | | 0.09 | 0.73 | 0.18 | 0.34 | +#> | | 0.07 | 0.67 | 0.4 | | +#> ---------------------------------------------------------------------------- +#> | 6 | 2 | 4 | 1 | 7 | +#> | | 0.062 | 0.125 | 0.031 | | +#> | | 0.29 | 0.57 | 0.14 | 0.22 | +#> | | 0.13 | 0.33 | 0.2 | | +#> ---------------------------------------------------------------------------- +#> | 8 | 12 | 0 | 2 | 14 | +#> | | 0.375 | 0 | 0.062 | | +#> | | 0.86 | 0 | 0.14 | 0.44 | +#> | | 0.8 | 0 | 0.4 | | +#> ---------------------------------------------------------------------------- +#> | Column Total | 15 | 12 | 5 | 32 | +#> | | 0.468 | 0.375 | 0.155 | | +#> ---------------------------------------------------------------------------- +#> +#> +#> cyl vs am +#> ------------------------------------------------------------- +#> | | am | +#> ------------------------------------------------------------- +#> | cyl | 0 | 1 | Row Total | +#> ------------------------------------------------------------- +#> | 4 | 3 | 8 | 11 | +#> | | 0.094 | 0.25 | | +#> | | 0.27 | 0.73 | 0.34 | +#> | | 0.16 | 0.62 | | +#> ------------------------------------------------------------- +#> | 6 | 4 | 3 | 7 | +#> | | 0.125 | 0.094 | | +#> | | 0.57 | 0.43 | 0.22 | +#> | | 0.21 | 0.23 | | +#> ------------------------------------------------------------- +#> | 8 | 12 | 2 | 14 | +#> | | 0.375 | 0.062 | | +#> | | 0.86 | 0.14 | 0.44 | +#> | | 0.63 | 0.15 | | +#> ------------------------------------------------------------- +#> | Column Total | 19 | 13 | 32 | +#> | | 0.594 | 0.406 | | +#> ------------------------------------------------------------- +#> +#> +#> gear vs am +#> ------------------------------------------------------------- +#> | | am | +#> ------------------------------------------------------------- +#> | gear | 0 | 1 | Row Total | +#> ------------------------------------------------------------- +#> | 3 | 15 | 0 | 15 | +#> | | 0.469 | 0 | | +#> | | 1 | 0 | 0.47 | +#> | | 0.79 | 0 | | +#> ------------------------------------------------------------- +#> | 4 | 4 | 8 | 12 | +#> | | 0.125 | 0.25 | | +#> | | 0.33 | 0.67 | 0.38 | +#> | | 0.21 | 0.62 | | +#> ------------------------------------------------------------- +#> | 5 | 0 | 5 | 5 | +#> | | 0 | 0.156 | | +#> | | 0 | 1 | 0.16 | +#> | | 0 | 0.38 | | +#> ------------------------------------------------------------- +#> | Column Total | 19 | 13 | 32 | +#> | | 0.594 | 0.406 | | +#> ------------------------------------------------------------- +#> +#>
+
+ +
+ + +
+ + + + + + diff --git a/docs/reference/ds_auto_group_summary.html b/docs/reference/ds_auto_group_summary.html new file mode 100644 index 0000000..94cd128 --- /dev/null +++ b/docs/reference/ds_auto_group_summary.html @@ -0,0 +1,281 @@ + + + + + + + + +Tabulation — ds_auto_group_summary • descriptr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
+ +
+
+ + +
+ +

Generate summary statistics for all continuous variables in data.

+ +
+ +
ds_auto_group_summary(data, ...)
+ +

Arguments

+ + + + + + + + + + +
data

A data.frame or tibble.

...

Column(s) in data.

+ + +

Examples

+
ds_auto_group_summary(mtcarz, cyl, gear, mpg, disp)
#> mpg by cyl +#> ----------------------------------------------------------------------------------------- +#> | Statistic/Levels| 4| 6| 8| +#> ----------------------------------------------------------------------------------------- +#> | Obs| 11| 7| 14| +#> | Minimum| 21.4| 17.8| 10.4| +#> | Maximum| 33.9| 21.4| 19.2| +#> | Mean| 26.66| 19.74| 15.1| +#> | Median| 26| 19.7| 15.2| +#> | Mode| 22.8| 21| 10.4| +#> | Std. Deviation| 4.51| 1.45| 2.56| +#> | Variance| 20.34| 2.11| 6.55| +#> | Skewness| 0.35| -0.26| -0.46| +#> | Kurtosis| -1.43| -1.83| 0.33| +#> | Uncorrected SS| 8023.83| 2741.14| 3277.34| +#> | Corrected SS| 203.39| 12.68| 85.2| +#> | Coeff Variation| 16.91| 7.36| 16.95| +#> | Std. Error Mean| 1.36| 0.55| 0.68| +#> | Range| 12.5| 3.6| 8.8| +#> | Interquartile Range| 7.6| 2.35| 1.85| +#> ----------------------------------------------------------------------------------------- +#> +#> +#> +#> mpg by gear +#> ----------------------------------------------------------------------------------------- +#> | Statistic/Levels| 3| 4| 5| +#> ----------------------------------------------------------------------------------------- +#> | Obs| 15| 12| 5| +#> | Minimum| 10.4| 17.8| 15| +#> | Maximum| 21.5| 33.9| 30.4| +#> | Mean| 16.11| 24.53| 21.38| +#> | Median| 15.5| 22.8| 19.7| +#> | Mode| 10.4| 21| 15| +#> | Std. Deviation| 3.37| 5.28| 6.66| +#> | Variance| 11.37| 27.84| 44.34| +#> | Skewness| -0.09| 0.7| 0.56| +#> | Kurtosis| -0.38| -0.77| -1.83| +#> | Uncorrected SS| 4050.52| 7528.9| 2462.89| +#> | Corrected SS| 159.15| 306.29| 177.37| +#> | Coeff Variation| 20.93| 21.51| 31.15| +#> | Std. Error Mean| 0.87| 1.52| 2.98| +#> | Range| 11.1| 16.1| 15.4| +#> | Interquartile Range| 3.9| 7.08| 10.2| +#> ----------------------------------------------------------------------------------------- +#> +#> +#> +#> disp by cyl +#> ----------------------------------------------------------------------------------------- +#> | Statistic/Levels| 4| 6| 8| +#> ----------------------------------------------------------------------------------------- +#> | Obs| 11| 7| 14| +#> | Minimum| 71.1| 145| 275.8| +#> | Maximum| 146.7| 258| 472| +#> | Mean| 105.14| 183.31| 353.1| +#> | Median| 108| 167.6| 350.5| +#> | Mode| 71.1| 160| 275.8| +#> | Std. Deviation| 26.87| 41.56| 67.77| +#> | Variance| 722.08| 1727.44| 4592.95| +#> | Skewness| 0.16| 1.3| 0.57| +#> | Kurtosis| -1.41| 0.39| -0.86| +#> | Uncorrected SS| 128811| 245593.5| 1805223| +#> | Corrected SS| 7220.83| 10364.63| 59708.38| +#> | Coeff Variation| 25.56| 22.67| 19.19| +#> | Std. Error Mean| 8.1| 15.71| 18.11| +#> | Range| 75.6| 113| 196.2| +#> | Interquartile Range| 41.8| 36.3| 88.25| +#> ----------------------------------------------------------------------------------------- +#> +#> +#> +#> disp by gear +#> ----------------------------------------------------------------------------------------- +#> | Statistic/Levels| 3| 4| 5| +#> ----------------------------------------------------------------------------------------- +#> | Obs| 15| 12| 5| +#> | Minimum| 120.1| 71.1| 95.1| +#> | Maximum| 472| 167.6| 351| +#> | Mean| 326.3| 123.02| 202.48| +#> | Median| 318| 130.9| 145| +#> | Mode| 275.8| 160| 95.1| +#> | Std. Deviation| 94.85| 38.91| 115.49| +#> | Variance| 8997.04| 1513.93| 13338.09| +#> | Skewness| -0.3| -0.23| 0.61| +#> | Kurtosis| 0.2| -1.83| -2.59| +#> | Uncorrected SS| 1723034| 198250.4| 258343.1| +#> | Corrected SS| 125958.6| 16653.24| 53352.35| +#> | Coeff Variation| 29.07| 31.63| 57.04| +#> | Std. Error Mean| 24.49| 11.23| 51.65| +#> | Range| 351.9| 96.5| 255.9| +#> | Interquartile Range| 104.2| 81.08| 180.7| +#> ----------------------------------------------------------------------------------------- +#> +#> +#>
+
+
+ +
+ + +
+ + + + + + diff --git a/docs/reference/ds_auto_summary_stats.html b/docs/reference/ds_auto_summary_stats.html new file mode 100644 index 0000000..e43ce7b --- /dev/null +++ b/docs/reference/ds_auto_summary_stats.html @@ -0,0 +1,736 @@ + + + + + + + + +Descriptive statistics and frquency tables — ds_auto_summary_stats • descriptr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
+ +
+
+ + +
+ +

Generate summary statistics & frequency table for all continuous variables in data.

+ +
+ +
ds_auto_summary_stats(data, ...)
+ +

Arguments

+ + + + + + + + + + +
data

A data.frame or tibble.

...

Column(s) in data.

+ + +

Examples

+
ds_auto_summary_stats(mtcarz)
#> --------------------------------- Variable: mpg -------------------------------- +#> +#> ------------------------------ Summary Statistics ------------------------------ +#> +#> --------------------------------- Variable: mpg -------------------------------- +#> +#> Univariate Analysis +#> +#> N 32.00 Variance 36.32 +#> Missing 0.00 Std Deviation 6.03 +#> Mean 20.09 Range 23.50 +#> Median 19.20 Interquartile Range 7.38 +#> Mode 10.40 Uncorrected SS 14042.31 +#> Trimmed Mean 19.95 Corrected SS 1126.05 +#> Skewness 0.67 Coeff Variation 30.00 +#> Kurtosis -0.02 Std Error Mean 1.07 +#> +#> Quantiles +#> +#> Quantile Value +#> +#> Max 33.90 +#> 99% 33.44 +#> 95% 31.30 +#> 90% 30.09 +#> Q3 22.80 +#> Median 19.20 +#> Q1 15.43 +#> 10% 14.34 +#> 5% 12.00 +#> 1% 10.40 +#> Min 10.40 +#> +#> Extreme Values +#> +#> Low High +#> +#> Obs Value Obs Value +#> 15 10.4 20 33.9 +#> 16 10.4 18 32.4 +#> 24 13.3 19 30.4 +#> 7 14.3 28 30.4 +#> 17 14.7 26 27.3 +#> +#> +#> +#> NULL +#> +#> +#> ---------------------------- Frequency Distribution ---------------------------- +#> +#> Variable: mpg +#> |-----------------------------------------------------------------------| +#> | Bins | Frequency | Cum Frequency | Percent | Cum Percent | +#> |-----------------------------------------------------------------------| +#> | 10.4 - 15.1 | 6 | 6 | 18.75 | 18.75 | +#> |-----------------------------------------------------------------------| +#> | 15.1 - 19.8 | 12 | 18 | 37.5 | 56.25 | +#> |-----------------------------------------------------------------------| +#> | 19.8 - 24.5 | 8 | 26 | 25 | 81.25 | +#> |-----------------------------------------------------------------------| +#> | 24.5 - 29.2 | 2 | 28 | 6.25 | 87.5 | +#> |-----------------------------------------------------------------------| +#> | 29.2 - 33.9 | 4 | 32 | 12.5 | 100 | +#> |-----------------------------------------------------------------------| +#> | Total | 32 | - | 100.00 | - | +#> |-----------------------------------------------------------------------| +#> +#> +#> -------------------------------- Variable: disp -------------------------------- +#> +#> ------------------------------ Summary Statistics ------------------------------ +#> +#> -------------------------------- Variable: disp -------------------------------- +#> +#> Univariate Analysis +#> +#> N 32.00 Variance 15360.80 +#> Missing 0.00 Std Deviation 123.94 +#> Mean 230.72 Range 400.90 +#> Median 196.30 Interquartile Range 205.18 +#> Mode 275.80 Uncorrected SS 2179627.47 +#> Trimmed Mean 228.00 Corrected SS 476184.79 +#> Skewness 0.42 Coeff Variation 53.72 +#> Kurtosis -1.07 Std Error Mean 21.91 +#> +#> Quantiles +#> +#> Quantile Value +#> +#> Max 472.00 +#> 99% 468.28 +#> 95% 449.00 +#> 90% 396.00 +#> Q3 326.00 +#> Median 196.30 +#> Q1 120.83 +#> 10% 80.61 +#> 5% 77.35 +#> 1% 72.53 +#> Min 71.10 +#> +#> Extreme Values +#> +#> Low High +#> +#> Obs Value Obs Value +#> 20 71.1 15 472 +#> 19 75.7 16 460 +#> 18 78.7 17 440 +#> 26 79 25 400 +#> 28 95.1 5 360 +#> +#> +#> +#> NULL +#> +#> +#> ---------------------------- Frequency Distribution ---------------------------- +#> +#> Variable: disp +#> |---------------------------------------------------------------------------| +#> | Bins | Frequency | Cum Frequency | Percent | Cum Percent | +#> |---------------------------------------------------------------------------| +#> | 71.1 - 151.3 | 12 | 12 | 37.5 | 37.5 | +#> |---------------------------------------------------------------------------| +#> | 151.3 - 231.5 | 5 | 17 | 15.62 | 53.12 | +#> |---------------------------------------------------------------------------| +#> | 231.5 - 311.6 | 6 | 23 | 18.75 | 71.88 | +#> |---------------------------------------------------------------------------| +#> | 311.6 - 391.8 | 5 | 28 | 15.62 | 87.5 | +#> |---------------------------------------------------------------------------| +#> | 391.8 - 472 | 4 | 32 | 12.5 | 100 | +#> |---------------------------------------------------------------------------| +#> | Total | 32 | - | 100.00 | - | +#> |---------------------------------------------------------------------------| +#> +#> +#> --------------------------------- Variable: hp --------------------------------- +#> +#> ------------------------------ Summary Statistics ------------------------------ +#> +#> --------------------------------- Variable: hp --------------------------------- +#> +#> Univariate Analysis +#> +#> N 32.00 Variance 4700.87 +#> Missing 0.00 Std Deviation 68.56 +#> Mean 146.69 Range 283.00 +#> Median 123.00 Interquartile Range 83.50 +#> Mode 110.00 Uncorrected SS 834278.00 +#> Trimmed Mean 143.57 Corrected SS 145726.88 +#> Skewness 0.80 Coeff Variation 46.74 +#> Kurtosis 0.28 Std Error Mean 12.12 +#> +#> Quantiles +#> +#> Quantile Value +#> +#> Max 335.00 +#> 99% 312.99 +#> 95% 253.55 +#> 90% 243.50 +#> Q3 180.00 +#> Median 123.00 +#> Q1 96.50 +#> 10% 66.00 +#> 5% 63.65 +#> 1% 55.10 +#> Min 52.00 +#> +#> Extreme Values +#> +#> Low High +#> +#> Obs Value Obs Value +#> 19 52 31 335 +#> 8 62 29 264 +#> 20 65 7 245 +#> 18 66 24 245 +#> 26 66 17 230 +#> +#> +#> +#> NULL +#> +#> +#> ---------------------------- Frequency Distribution ---------------------------- +#> +#> Variable: hp +#> |-------------------------------------------------------------------------| +#> | Bins | Frequency | Cum Frequency | Percent | Cum Percent | +#> |-------------------------------------------------------------------------| +#> | 52 - 108.6 | 10 | 10 | 31.25 | 31.25 | +#> |-------------------------------------------------------------------------| +#> | 108.6 - 165.2 | 9 | 19 | 28.12 | 59.38 | +#> |-------------------------------------------------------------------------| +#> | 165.2 - 221.8 | 8 | 27 | 25 | 84.38 | +#> |-------------------------------------------------------------------------| +#> | 221.8 - 278.4 | 4 | 31 | 12.5 | 96.88 | +#> |-------------------------------------------------------------------------| +#> | 278.4 - 335 | 1 | 32 | 3.12 | 100 | +#> |-------------------------------------------------------------------------| +#> | Total | 32 | - | 100.00 | - | +#> |-------------------------------------------------------------------------| +#> +#> +#> -------------------------------- Variable: drat -------------------------------- +#> +#> ------------------------------ Summary Statistics ------------------------------ +#> +#> -------------------------------- Variable: drat -------------------------------- +#> +#> Univariate Analysis +#> +#> N 32.00 Variance 0.29 +#> Missing 0.00 Std Deviation 0.53 +#> Mean 3.60 Range 2.17 +#> Median 3.70 Interquartile Range 0.84 +#> Mode 3.07 Uncorrected SS 422.79 +#> Trimmed Mean 3.58 Corrected SS 8.86 +#> Skewness 0.29 Coeff Variation 14.87 +#> Kurtosis -0.45 Std Error Mean 0.09 +#> +#> Quantiles +#> +#> Quantile Value +#> +#> Max 4.93 +#> 99% 4.78 +#> 95% 4.31 +#> 90% 4.21 +#> Q3 3.92 +#> Median 3.70 +#> Q1 3.08 +#> 10% 3.01 +#> 5% 2.85 +#> 1% 2.76 +#> Min 2.76 +#> +#> Extreme Values +#> +#> Low High +#> +#> Obs Value Obs Value +#> 6 2.76 19 4.93 +#> 22 2.76 27 4.43 +#> 15 2.93 20 4.22 +#> 16 3 29 4.22 +#> 12 3.07 32 4.11 +#> +#> +#> +#> NULL +#> +#> +#> ---------------------------- Frequency Distribution ---------------------------- +#> +#> Variable: drat +#> |-------------------------------------------------------------------------| +#> | Bins | Frequency | Cum Frequency | Percent | Cum Percent | +#> |-------------------------------------------------------------------------| +#> | 2.8 - 3.2 | 11 | 11 | 34.38 | 34.38 | +#> |-------------------------------------------------------------------------| +#> | 3.2 - 3.6 | 4 | 15 | 12.5 | 46.88 | +#> |-------------------------------------------------------------------------| +#> | 3.6 - 4.1 | 10 | 25 | 31.25 | 78.12 | +#> |-------------------------------------------------------------------------| +#> | 4.1 - 4.5 | 6 | 31 | 18.75 | 96.88 | +#> |-------------------------------------------------------------------------| +#> | 4.5 - 4.9 | 1 | 32 | 3.12 | 100 | +#> |-------------------------------------------------------------------------| +#> | Total | 32 | - | 100.00 | - | +#> |-------------------------------------------------------------------------| +#> +#> +#> --------------------------------- Variable: wt --------------------------------- +#> +#> ------------------------------ Summary Statistics ------------------------------ +#> +#> --------------------------------- Variable: wt --------------------------------- +#> +#> Univariate Analysis +#> +#> N 32.00 Variance 0.96 +#> Missing 0.00 Std Deviation 0.98 +#> Mean 3.22 Range 3.91 +#> Median 3.33 Interquartile Range 1.03 +#> Mode 3.44 Uncorrected SS 360.90 +#> Trimmed Mean 3.20 Corrected SS 29.68 +#> Skewness 0.47 Coeff Variation 30.41 +#> Kurtosis 0.42 Std Error Mean 0.17 +#> +#> Quantiles +#> +#> Quantile Value +#> +#> Max 5.42 +#> 99% 5.40 +#> 95% 5.29 +#> 90% 4.05 +#> Q3 3.61 +#> Median 3.33 +#> Q1 2.58 +#> 10% 1.96 +#> 5% 1.74 +#> 1% 1.54 +#> Min 1.51 +#> +#> Extreme Values +#> +#> Low High +#> +#> Obs Value Obs Value +#> 28 1.513 16 5.424 +#> 19 1.615 17 5.345 +#> 20 1.835 15 5.25 +#> 26 1.935 12 4.07 +#> 27 2.14 25 3.845 +#> +#> +#> +#> NULL +#> +#> +#> ---------------------------- Frequency Distribution ---------------------------- +#> +#> Variable: wt +#> |---------------------------------------------------------------------------| +#> | Bins | Frequency | Cum Frequency | Percent | Cum Percent | +#> |---------------------------------------------------------------------------| +#> | 1.5 - 2.3 | 6 | 6 | 18.75 | 18.75 | +#> |---------------------------------------------------------------------------| +#> | 2.3 - 3.1 | 6 | 12 | 18.75 | 37.5 | +#> |---------------------------------------------------------------------------| +#> | 3.1 - 3.9 | 16 | 28 | 50 | 87.5 | +#> |---------------------------------------------------------------------------| +#> | 3.9 - 4.6 | 1 | 29 | 3.12 | 90.62 | +#> |---------------------------------------------------------------------------| +#> | 4.6 - 5.4 | 3 | 32 | 9.38 | 100 | +#> |---------------------------------------------------------------------------| +#> | Total | 32 | - | 100.00 | - | +#> |---------------------------------------------------------------------------| +#> +#> +#> -------------------------------- Variable: qsec -------------------------------- +#> +#> ------------------------------ Summary Statistics ------------------------------ +#> +#> -------------------------------- Variable: qsec -------------------------------- +#> +#> Univariate Analysis +#> +#> N 32.00 Variance 3.19 +#> Missing 0.00 Std Deviation 1.79 +#> Mean 17.85 Range 8.40 +#> Median 17.71 Interquartile Range 2.01 +#> Mode 17.02 Uncorrected SS 10293.48 +#> Trimmed Mean 17.79 Corrected SS 98.99 +#> Skewness 0.41 Coeff Variation 10.01 +#> Kurtosis 0.86 Std Error Mean 0.32 +#> +#> Quantiles +#> +#> Quantile Value +#> +#> Max 22.90 +#> 99% 22.07 +#> 95% 20.10 +#> 90% 19.99 +#> Q3 18.90 +#> Median 17.71 +#> Q1 16.89 +#> 10% 15.53 +#> 5% 15.05 +#> 1% 14.53 +#> Min 14.50 +#> +#> Extreme Values +#> +#> Low High +#> +#> Obs Value Obs Value +#> 29 14.5 9 22.9 +#> 31 14.6 6 20.22 +#> 24 15.41 21 20.01 +#> 30 15.5 8 20 +#> 7 15.84 20 19.9 +#> +#> +#> +#> NULL +#> +#> +#> ---------------------------- Frequency Distribution ---------------------------- +#> +#> Variable: qsec +#> |-------------------------------------------------------------------------| +#> | Bins | Frequency | Cum Frequency | Percent | Cum Percent | +#> |-------------------------------------------------------------------------| +#> | 14.5 - 16.2 | 5 | 5 | 15.62 | 15.62 | +#> |-------------------------------------------------------------------------| +#> | 16.2 - 17.9 | 12 | 17 | 37.5 | 53.12 | +#> |-------------------------------------------------------------------------| +#> | 17.9 - 19.5 | 10 | 27 | 31.25 | 84.38 | +#> |-------------------------------------------------------------------------| +#> | 19.5 - 21.2 | 4 | 31 | 12.5 | 96.88 | +#> |-------------------------------------------------------------------------| +#> | 21.2 - 22.9 | 1 | 32 | 3.12 | 100 | +#> |-------------------------------------------------------------------------| +#> | Total | 32 | - | 100.00 | - | +#> |-------------------------------------------------------------------------| +#> +#>
ds_auto_summary_stats(mtcarz, disp, hp)
#> -------------------------------- Variable: disp -------------------------------- +#> +#> ------------------------------ Summary Statistics ------------------------------ +#> +#> -------------------------------- Variable: disp -------------------------------- +#> +#> Univariate Analysis +#> +#> N 32.00 Variance 15360.80 +#> Missing 0.00 Std Deviation 123.94 +#> Mean 230.72 Range 400.90 +#> Median 196.30 Interquartile Range 205.18 +#> Mode 275.80 Uncorrected SS 2179627.47 +#> Trimmed Mean 228.00 Corrected SS 476184.79 +#> Skewness 0.42 Coeff Variation 53.72 +#> Kurtosis -1.07 Std Error Mean 21.91 +#> +#> Quantiles +#> +#> Quantile Value +#> +#> Max 472.00 +#> 99% 468.28 +#> 95% 449.00 +#> 90% 396.00 +#> Q3 326.00 +#> Median 196.30 +#> Q1 120.83 +#> 10% 80.61 +#> 5% 77.35 +#> 1% 72.53 +#> Min 71.10 +#> +#> Extreme Values +#> +#> Low High +#> +#> Obs Value Obs Value +#> 20 71.1 15 472 +#> 19 75.7 16 460 +#> 18 78.7 17 440 +#> 26 79 25 400 +#> 28 95.1 5 360 +#> +#> +#> +#> NULL +#> +#> +#> ---------------------------- Frequency Distribution ---------------------------- +#> +#> Variable: disp +#> |---------------------------------------------------------------------------| +#> | Bins | Frequency | Cum Frequency | Percent | Cum Percent | +#> |---------------------------------------------------------------------------| +#> | 71.1 - 151.3 | 12 | 12 | 37.5 | 37.5 | +#> |---------------------------------------------------------------------------| +#> | 151.3 - 231.5 | 5 | 17 | 15.62 | 53.12 | +#> |---------------------------------------------------------------------------| +#> | 231.5 - 311.6 | 6 | 23 | 18.75 | 71.88 | +#> |---------------------------------------------------------------------------| +#> | 311.6 - 391.8 | 5 | 28 | 15.62 | 87.5 | +#> |---------------------------------------------------------------------------| +#> | 391.8 - 472 | 4 | 32 | 12.5 | 100 | +#> |---------------------------------------------------------------------------| +#> | Total | 32 | - | 100.00 | - | +#> |---------------------------------------------------------------------------| +#> +#> +#> --------------------------------- Variable: hp --------------------------------- +#> +#> ------------------------------ Summary Statistics ------------------------------ +#> +#> --------------------------------- Variable: hp --------------------------------- +#> +#> Univariate Analysis +#> +#> N 32.00 Variance 4700.87 +#> Missing 0.00 Std Deviation 68.56 +#> Mean 146.69 Range 283.00 +#> Median 123.00 Interquartile Range 83.50 +#> Mode 110.00 Uncorrected SS 834278.00 +#> Trimmed Mean 143.57 Corrected SS 145726.88 +#> Skewness 0.80 Coeff Variation 46.74 +#> Kurtosis 0.28 Std Error Mean 12.12 +#> +#> Quantiles +#> +#> Quantile Value +#> +#> Max 335.00 +#> 99% 312.99 +#> 95% 253.55 +#> 90% 243.50 +#> Q3 180.00 +#> Median 123.00 +#> Q1 96.50 +#> 10% 66.00 +#> 5% 63.65 +#> 1% 55.10 +#> Min 52.00 +#> +#> Extreme Values +#> +#> Low High +#> +#> Obs Value Obs Value +#> 19 52 31 335 +#> 8 62 29 264 +#> 20 65 7 245 +#> 18 66 24 245 +#> 26 66 17 230 +#> +#> +#> +#> NULL +#> +#> +#> ---------------------------- Frequency Distribution ---------------------------- +#> +#> Variable: hp +#> |-------------------------------------------------------------------------| +#> | Bins | Frequency | Cum Frequency | Percent | Cum Percent | +#> |-------------------------------------------------------------------------| +#> | 52 - 108.6 | 10 | 10 | 31.25 | 31.25 | +#> |-------------------------------------------------------------------------| +#> | 108.6 - 165.2 | 9 | 19 | 28.12 | 59.38 | +#> |-------------------------------------------------------------------------| +#> | 165.2 - 221.8 | 8 | 27 | 25 | 84.38 | +#> |-------------------------------------------------------------------------| +#> | 221.8 - 278.4 | 4 | 31 | 12.5 | 96.88 | +#> |-------------------------------------------------------------------------| +#> | 278.4 - 335 | 1 | 32 | 3.12 | 100 | +#> |-------------------------------------------------------------------------| +#> | Total | 32 | - | 100.00 | - | +#> |-------------------------------------------------------------------------| +#> +#>
+
+
+ +
+ + +
+ + + + + + diff --git a/docs/reference/ds_cross_table-1.png b/docs/reference/ds_cross_table-1.png index 35ddef9..e7e9a6e 100644 Binary files a/docs/reference/ds_cross_table-1.png and b/docs/reference/ds_cross_table-1.png differ diff --git a/docs/reference/ds_cross_table-2.png b/docs/reference/ds_cross_table-2.png index e527242..07dd9d0 100644 Binary files a/docs/reference/ds_cross_table-2.png and b/docs/reference/ds_cross_table-2.png differ diff --git a/docs/reference/ds_cross_table-3.png b/docs/reference/ds_cross_table-3.png index bea408c..47c28d4 100644 Binary files a/docs/reference/ds_cross_table-3.png and b/docs/reference/ds_cross_table-3.png differ diff --git a/docs/reference/ds_cross_table.html b/docs/reference/ds_cross_table.html index e4d5115..39f861a 100644 --- a/docs/reference/ds_cross_table.html +++ b/docs/reference/ds_cross_table.html @@ -64,7 +64,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -81,10 +81,13 @@ @@ -178,12 +181,6 @@

Arg -

Deprecated function

- - -

ds_cross_table() has been deprecated. Instead use -ds_cross_table().

-

Examples

k <- ds_cross_table(mtcarz, cyl, gear) @@ -223,26 +220,24 @@

Examp # bar plots plot(k)

plot(k, stacked = TRUE)
plot(k, proportional = TRUE)
# alternate -ds_twoway_table(mtcarz, cyl, gear)
#> Joining, by = c("cyl", "gear", "count")
#> # A tibble: 8 x 6 +ds_twoway_table(mtcarz, cyl, gear)
#> Joining, by = c("cyl", "gear", "count")
#> # A tibble: 8 x 6 #> cyl gear count percent row_percent col_percent -#> <fct> <fct> <int> <dbl> <dbl> <dbl> -#> 1 4 3 1 0.0312 0.0909 0.0667 -#> 2 4 4 8 0.25 0.727 0.667 -#> 3 4 5 2 0.0625 0.182 0.4 -#> 4 6 3 2 0.0625 0.286 0.133 -#> 5 6 4 4 0.125 0.571 0.333 -#> 6 6 5 1 0.0312 0.143 0.2 -#> 7 8 3 12 0.375 0.857 0.8 -#> 8 8 5 2 0.0625 0.143 0.4
+#> <fct> <fct> <int> <dbl> <dbl> <dbl> +#> 1 4 3 1 0.0312 0.0909 0.0667 +#> 2 4 4 8 0.25 0.727 0.667 +#> 3 4 5 2 0.0625 0.182 0.4 +#> 4 6 3 2 0.0625 0.286 0.133 +#> 5 6 4 4 0.125 0.571 0.333 +#> 6 6 5 1 0.0312 0.143 0.2 +#> 7 8 3 12 0.375 0.857 0.8 +#> 8 8 5 2 0.0625 0.143 0.4
@@ -80,10 +80,13 @@ @@ -158,15 +161,6 @@

Details

Any NA values are stripped from x before computation takes place.

-

Deprecated Function

- - -

stat_css() has been deprecated. Instead use ds_css().

- -

References

- -

NIST/SEMATECH e-Handbook of Statistical Methods

-

Examples

ds_css(mtcars$mpg)
#> [1] 1126.047
@@ -179,10 +173,6 @@

Contents

  • Value
  • Details
  • - -
  • Deprecated Function
  • - -
  • References
  • Examples
  • diff --git a/docs/reference/ds_cvar.html b/docs/reference/ds_cvar.html index b915314..a9df89d 100644 --- a/docs/reference/ds_cvar.html +++ b/docs/reference/ds_cvar.html @@ -63,7 +63,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -80,10 +80,13 @@ @@ -154,11 +157,6 @@

    Details

    Any NA values are stripped from x before computation takes place.

    -

    Deprecated Function

    - - -

    stat_cvar() has been deprecated. Instead use ds_cvar().

    -

    Examples

    ds_cvar(mtcars$mpg)
    #> [1] 29.99881
    @@ -169,8 +167,6 @@

    Contents

  • Arguments
  • Details
  • - -
  • Deprecated Function
  • Examples
  • diff --git a/docs/reference/ds_extreme_obs.html b/docs/reference/ds_extreme_obs.html index a74eb56..408af56 100644 --- a/docs/reference/ds_extreme_obs.html +++ b/docs/reference/ds_extreme_obs.html @@ -63,7 +63,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -80,10 +80,13 @@ @@ -151,19 +154,19 @@

    Arg

    Examples

    -
    ds_extreme_obs(mtcarz, mpg)
    #> # A tibble: 10 x 3 +
    ds_extreme_obs(mtcarz, mpg)
    #> # A tibble: 10 x 3 #> type value index -#> <chr> <dbl> <int> -#> 1 high 33.9 20 -#> 2 high 32.4 18 -#> 3 high 30.4 19 -#> 4 high 30.4 28 -#> 5 high 27.3 26 -#> 6 low 10.4 15 -#> 7 low 10.4 16 -#> 8 low 13.3 24 -#> 9 low 14.3 7 -#> 10 low 14.7 17
    +#> <chr> <dbl> <int> +#> 1 high 33.9 20 +#> 2 high 32.4 18 +#> 3 high 30.4 19 +#> 4 high 30.4 28 +#> 5 high 27.3 26 +#> 6 low 10.4 15 +#> 7 low 10.4 16 +#> 8 low 13.3 24 +#> 9 low 14.3 7 +#> 10 low 14.7 17
    @@ -83,10 +83,13 @@ @@ -133,14 +136,14 @@

    Frequency table

    -

    Frequency table for factor data and returns the frequency, cumulative -frequency, frequency percent and cumulative frequency percent. -barplot.ds_freq_table() creates bar plot for the -frequency table created using ds_freq_table().

    +

    Frequency table for categorical and continuous data and returns the +frequency, cumulative frequency, frequency percent and cumulative frequency +percent. plot.ds_freq_table() creates bar plot for the categorical +data and histogram for continuous data.

    -
    ds_freq_table(data, variable)
    +    
    ds_freq_table(data, variable, bins = 5)
     
     # S3 method for ds_freq_table
     plot(x, ...)
    @@ -156,6 +159,10 @@

    Arg variable

    Column in data.

    + + bins +

    Number of intervals into which the data must be split.

    + x

    An object of class ds_freq_table.

    @@ -166,26 +173,13 @@

    Arg -

    Value

    - -

    ds_freq_table returns an object of class "ds_freq_table". -An object of class "ds_freq_table" is a list containing the -following components:

    -
    ftable

    Frequency table.

    - - -

    Deprecated function

    - - -

    freq_table() has been deprecated. Instead use ds_freq_table().

    -

    See also

    - +

    Examples

    -
    # frequency table +
    # categorical data ds_freq_table(mtcarz, cyl)
    #> Variable: cyl #> ----------------------------------------------------------------------- #> Levels Frequency Cum Frequency Percent Cum Percent @@ -202,6 +196,26 @@

    Examp # barplot k <- ds_freq_table(mtcarz, cyl) plot(k)

    +# continuous data +ds_freq_table(mtcarz, mpg)
    #> Variable: mpg +#> |-----------------------------------------------------------------------| +#> | Bins | Frequency | Cum Frequency | Percent | Cum Percent | +#> |-----------------------------------------------------------------------| +#> | 10.4 - 15.1 | 6 | 6 | 18.75 | 18.75 | +#> |-----------------------------------------------------------------------| +#> | 15.1 - 19.8 | 12 | 18 | 37.5 | 56.25 | +#> |-----------------------------------------------------------------------| +#> | 19.8 - 24.5 | 8 | 26 | 25 | 81.25 | +#> |-----------------------------------------------------------------------| +#> | 24.5 - 29.2 | 2 | 28 | 6.25 | 87.5 | +#> |-----------------------------------------------------------------------| +#> | 29.2 - 33.9 | 4 | 32 | 12.5 | 100 | +#> |-----------------------------------------------------------------------| +#> | Total | 32 | - | 100.00 | - | +#> |-----------------------------------------------------------------------|
    +# barplot +k <- ds_freq_table(mtcarz, mpg) +plot(k)
    @@ -80,10 +80,13 @@ @@ -160,11 +163,6 @@

    Value

    Returns the geometric mean of x

    -

    Deprecated function

    - - -

    gmean() has been deprecated. Instead use ds_gmean().

    -

    See also

    @@ -180,8 +178,6 @@

    Contents

  • Value
  • -
  • Deprecated function
  • -
  • See also
  • Examples
  • diff --git a/docs/reference/ds_group_summary-1.png b/docs/reference/ds_group_summary-1.png index 0021ed8..5bbdccb 100644 Binary files a/docs/reference/ds_group_summary-1.png and b/docs/reference/ds_group_summary-1.png differ diff --git a/docs/reference/ds_group_summary.html b/docs/reference/ds_group_summary.html index ad1d3cc..f0a6cea 100644 --- a/docs/reference/ds_group_summary.html +++ b/docs/reference/ds_group_summary.html @@ -65,7 +65,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -82,10 +82,13 @@ @@ -180,12 +183,6 @@

    Value

    plotdata

    Data for boxplot method.

    -

    Deprecated function

    - - -

    ds_group_summary() has been deprecated. Instead -use ds_group_summary().

    -

    See also

    @@ -218,14 +215,14 @@

    Examp k <- ds_group_summary(mtcarz, cyl, mpg) plot(k)
    # tibble -k$tidy_stats
    #> # A tibble: 3 x 15 +k$tidy_stats
    #> # A tibble: 3 x 15 #> cyl length min max mean median mode sd variance skewness kurtosis -#> <fct> <int> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 4 11 21.4 33.9 26.7 26 22.8 4.51 20.3 0.348 -1.43 -#> 2 6 7 17.8 21.4 19.7 19.7 21 1.45 2.11 -0.259 -1.83 -#> 3 8 14 10.4 19.2 15.1 15.2 10.4 2.56 6.55 -0.456 0.330 -#> # ... with 4 more variables: coeff_var <dbl>, std_error <dbl>, range <dbl>, -#> # iqr <dbl>
    +#> <fct> <int> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 4 11 21.4 33.9 26.7 26 22.8 4.51 20.3 0.348 -1.43 +#> 2 6 7 17.8 21.4 19.7 19.7 21 1.45 2.11 -0.259 -1.83 +#> 3 8 14 10.4 19.2 15.1 15.2 10.4 2.56 6.55 -0.456 0.330 +#> # ... with 4 more variables: coeff_var <dbl>, std_error <dbl>, range <dbl>, +#> # iqr <dbl>

    @@ -80,10 +80,13 @@ @@ -160,11 +163,6 @@

    Value

    Returns the harmonic mean of x

    -

    Deprecated function

    - - -

    hmean() has been deprecated. Instead use ds_hmean().

    -

    See also

    @@ -180,8 +178,6 @@

    Contents

  • Value
  • -
  • Deprecated function
  • -
  • See also
  • Examples
  • diff --git a/docs/reference/ds_kurtosis.html b/docs/reference/ds_kurtosis.html index 4325895..f73dff4 100644 --- a/docs/reference/ds_kurtosis.html +++ b/docs/reference/ds_kurtosis.html @@ -63,7 +63,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -80,10 +80,13 @@ @@ -158,11 +161,6 @@

    Details

    Any NA values are stripped from x before computation takes place.

    -

    Deprecated Function

    - - -

    kurtosis() has been deprecated. Instead use ds_kurtosis().

    -

    References

    Sheskin, D.J. (2000) Handbook of Parametric and Nonparametric Statistical Procedures, Second Edition. Boca Raton, Florida: Chapman & Hall/CRC.

    @@ -184,8 +182,6 @@

    Contents

  • Details
  • -
  • Deprecated Function
  • -
  • References
  • See also
  • diff --git a/docs/reference/ds_launch_shiny_app.html b/docs/reference/ds_launch_shiny_app.html index f86cd1f..8bfce5e 100644 --- a/docs/reference/ds_launch_shiny_app.html +++ b/docs/reference/ds_launch_shiny_app.html @@ -63,7 +63,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -80,10 +80,13 @@ diff --git a/docs/reference/ds_mdev.html b/docs/reference/ds_mdev.html index 12ed505..774cf9e 100644 --- a/docs/reference/ds_mdev.html +++ b/docs/reference/ds_mdev.html @@ -63,7 +63,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -80,10 +80,13 @@ @@ -161,11 +164,6 @@

    Details mean. Any NA values are stripped from x before computation takes place

    -

    Deprecated Function

    - - -

    stat_mdev() has been deprecated. Instead use ds_mdev().

    -

    See also

    @@ -183,8 +181,6 @@

    Contents

  • Details
  • -
  • Deprecated Function
  • -
  • See also
  • Examples
  • diff --git a/docs/reference/ds_measures_location.html b/docs/reference/ds_measures_location.html index e53784e..8f10fba 100644 --- a/docs/reference/ds_measures_location.html +++ b/docs/reference/ds_measures_location.html @@ -63,7 +63,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -80,10 +80,13 @@ @@ -134,7 +137,7 @@

    Measures of location

    -
    ds_measures_location(data, column, trim = 0.05)
    +
    ds_measures_location(data, ..., trim = 0.05)

    Arguments

    @@ -144,8 +147,8 @@

    Arg

    - - + + @@ -156,10 +159,22 @@

    Arg

    Examples

    -
    ds_measures_location(mtcarz, mpg)
    #> # A tibble: 1 x 4 -#> mean trim_mean median mode -#> <dbl> <dbl> <dbl> <dbl> -#> 1 20.1 20.0 19.2 10.4
    +
    ds_measures_location(mtcarz)
    #> # A tibble: 6 x 5 +#> var mean trim_mean median mode +#> <chr> <dbl> <dbl> <dbl> <dbl> +#> 1 disp 231. 228 196. 276. +#> 2 drat 3.60 3.58 3.70 3.07 +#> 3 hp 147. 144. 123 110 +#> 4 mpg 20.1 20.0 19.2 10.4 +#> 5 qsec 17.8 17.8 17.7 17.0 +#> 6 wt 3.22 3.20 3.32 3.44
    ds_measures_location(mtcarz, mpg)
    #> # A tibble: 1 x 5 +#> var mean trim_mean median mode +#> <chr> <dbl> <dbl> <dbl> <dbl> +#> 1 mpg 20.1 20.0 19.2 10.4
    ds_measures_location(mtcarz, mpg, disp)
    #> # A tibble: 2 x 5 +#> var mean trim_mean median mode +#> <chr> <dbl> <dbl> <dbl> <dbl> +#> 1 disp 231. 228 196. 276. +#> 2 mpg 20.1 20.0 19.2 10.4
    @@ -80,10 +80,13 @@ @@ -134,7 +137,7 @@

    Measures of symmetry

    -
    ds_measures_symmetry(data, column)
    +
    ds_measures_symmetry(data, ...)

    Arguments

    A data.frame or tibble.

    column

    Column in data.

    ...

    Column(s) in data.

    trim
    @@ -144,17 +147,29 @@

    Arg

    - - + +

    A data.frame or tibble.

    column

    Column in data.

    ...

    Column(s) in data.

    Examples

    -
    ds_measures_symmetry(mtcarz, mpg)
    #> # A tibble: 1 x 2 -#> skewness kurtosis -#> <dbl> <dbl> -#> 1 0.672 -0.0220
    +
    ds_measures_symmetry(mtcarz)
    #> # A tibble: 6 x 3 +#> var skewness kurtosis +#> <chr> <dbl> <dbl> +#> 1 disp 0.420 -1.07 +#> 2 drat 0.293 -0.450 +#> 3 hp 0.799 0.275 +#> 4 mpg 0.672 -0.0220 +#> 5 qsec 0.406 0.865 +#> 6 wt 0.466 0.417
    ds_measures_symmetry(mtcarz, mpg)
    #> # A tibble: 1 x 3 +#> var skewness kurtosis +#> <chr> <dbl> <dbl> +#> 1 mpg 0.672 -0.0220
    ds_measures_symmetry(mtcarz, mpg, disp)
    #> # A tibble: 2 x 3 +#> var skewness kurtosis +#> <chr> <dbl> <dbl> +#> 1 disp 0.420 -1.07 +#> 2 mpg 0.672 -0.0220
    @@ -81,10 +81,13 @@ @@ -136,7 +139,7 @@

    Measures of variation

    -
    ds_measures_variation(data, column)
    +
    ds_measures_variation(data, ...)

    Arguments

    @@ -146,17 +149,29 @@

    Arg

    - - + +

    A data.frame or tibble.

    column

    Column in data.

    ...

    Column(s) in data.

    Examples

    -
    ds_measures_variation(mtcarz, mpg)
    #> # A tibble: 1 x 6 -#> range iqr variance sd coeff_var std_error -#> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 23.5 7.38 36.3 6.03 30.0 1.07
    +
    ds_measures_variation(mtcarz)
    #> # A tibble: 6 x 7 +#> var range iqr variance sd coeff_var std_error +#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 disp 401. 205. 15361. 124. 53.7 21.9 +#> 2 drat 2.17 0.840 0.286 0.535 14.9 0.0945 +#> 3 hp 283 83.5 4701. 68.6 46.7 12.1 +#> 4 mpg 23.5 7.38 36.3 6.03 30.0 1.07 +#> 5 qsec 8.40 2.01 3.19 1.79 10.0 0.316 +#> 6 wt 3.91 1.03 0.957 0.978 30.4 0.173
    ds_measures_variation(mtcarz, mpg)
    #> # A tibble: 1 x 7 +#> var range iqr variance sd coeff_var std_error +#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 mpg 23.5 7.38 36.3 6.03 30.0 1.07
    ds_measures_variation(mtcarz, mpg, disp)
    #> # A tibble: 2 x 7 +#> var range iqr variance sd coeff_var std_error +#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 disp 401. 205. 15361. 124. 53.7 21.9 +#> 2 mpg 23.5 7.38 36.3 6.03 30.0 1.07
    @@ -80,10 +80,13 @@ @@ -158,11 +161,6 @@

    Details

    Any NA values are stripped from x before computation takes place.

    -

    Deprecated Function

    - - -

    `stat_mode()` has been deprecated. Instead use `ds_mode()`.

    -

    See also

    @@ -180,8 +178,6 @@

    Contents

  • Details
  • -
  • Deprecated Function
  • -
  • See also
  • Examples
  • diff --git a/docs/reference/ds_percentiles.html b/docs/reference/ds_percentiles.html index afdb9a8..0ff44e1 100644 --- a/docs/reference/ds_percentiles.html +++ b/docs/reference/ds_percentiles.html @@ -63,7 +63,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -80,10 +80,13 @@ @@ -134,7 +137,7 @@

    Percentiles

    -
    ds_percentiles(data, column)
    +
    ds_percentiles(data, ...)

    Arguments

    @@ -144,17 +147,29 @@

    Arg

    - - + +

    A data.frame or tibble.

    column

    Column in data.

    ...

    Column(s) in data.

    Examples

    -
    ds_percentiles(mtcarz, mpg)
    #> # A tibble: 1 x 11 -#> min per1 per5 per10 q1 median q3 per95 per90 per99 max -#> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 10.4 10.4 12.0 14.3 15.4 19.2 22.8 31.3 30.1 33.4 33.9
    +
    ds_percentiles(mtcarz)
    #> # A tibble: 6 x 12 +#> var min per1 per5 per10 q1 median q3 per95 per90 per99 max +#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 disp 71.1 72.5 77.4 80.6 121. 196. 326 449 396. 468. 472 +#> 2 drat 2.76 2.76 2.85 3.01 3.08 3.70 3.92 4.31 4.21 4.78 4.93 +#> 3 hp 52 55.1 63.6 66 96.5 123 180 254. 244. 313. 335 +#> 4 mpg 10.4 10.4 12.0 14.3 15.4 19.2 22.8 31.3 30.1 33.4 33.9 +#> 5 qsec 14.5 14.5 15.0 15.5 16.9 17.7 18.9 20.1 20.0 22.1 22.9 +#> 6 wt 1.51 1.54 1.74 1.96 2.58 3.32 3.61 5.29 4.05 5.40 5.42
    ds_percentiles(mtcarz, mpg)
    #> # A tibble: 1 x 12 +#> var min per1 per5 per10 q1 median q3 per95 per90 per99 max +#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 mpg 10.4 10.4 12.0 14.3 15.4 19.2 22.8 31.3 30.1 33.4 33.9
    ds_percentiles(mtcarz, mpg, disp)
    #> # A tibble: 2 x 12 +#> var min per1 per5 per10 q1 median q3 per95 per90 per99 max +#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 disp 71.1 72.5 77.4 80.6 121. 196. 326 449 396. 468. 472 +#> 2 mpg 10.4 10.4 12.0 14.3 15.4 19.2 22.8 31.3 30.1 33.4 33.9
    @@ -80,10 +80,13 @@ @@ -153,11 +156,6 @@

    Value

    Range of x

    -

    Deprecated Function

    - - -

    stat_range() has been deprecated. Instead use ds_range().

    -

    See also

    @@ -173,8 +171,6 @@

    Contents

  • Value
  • -
  • Deprecated Function
  • -
  • See also
  • Examples
  • diff --git a/docs/reference/ds_rindex.html b/docs/reference/ds_rindex.html index e3542bb..176b385 100644 --- a/docs/reference/ds_rindex.html +++ b/docs/reference/ds_rindex.html @@ -63,7 +63,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -80,10 +80,13 @@ @@ -159,11 +162,6 @@

    Details

    Any NA values are stripped from data and values before computation takes place.

    -

    Deprecated Function

    - - -

    rindex() has been deprecated. Instead use ds_rindex().

    -

    Examples

    ds_rindex(mtcars$mpg, 21)
    #> [1] 1 2
    ds_rindex(mtcars$mpg, 22)
    #> NULL
    @@ -176,8 +174,6 @@

    Contents

  • Value
  • Details
  • - -
  • Deprecated Function
  • Examples
  • diff --git a/docs/reference/ds_screener.html b/docs/reference/ds_screener.html index a4509e5..9ec8615 100644 --- a/docs/reference/ds_screener.html +++ b/docs/reference/ds_screener.html @@ -65,7 +65,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -82,10 +82,13 @@ @@ -138,7 +141,7 @@

    Screen data

    -
    ds_screener(y)
    +    
    ds_screener(data)
     
     # S3 method for ds_screener
     plot(x, ...)
    @@ -147,7 +150,7 @@

    Arg - + @@ -182,12 +185,6 @@

    Value

    data frame.

    -

    Deprecated function

    - - -

    screener() has been deprecated. Instead -use ds_screener().

    -

    Examples

    # screen data @@ -219,8 +216,6 @@

    Contents

  • Arguments
  • Value
  • - -
  • Deprecated function
  • Examples
  • diff --git a/docs/reference/ds_skewness.html b/docs/reference/ds_skewness.html index 7d0a70f..ea76932 100644 --- a/docs/reference/ds_skewness.html +++ b/docs/reference/ds_skewness.html @@ -63,7 +63,7 @@ descriptr - 0.4.1.9000 + 0.5.0
    @@ -80,10 +80,13 @@ @@ -158,11 +161,6 @@

    Details

    Any NA values are stripped from x before computation takes place.

    -

    Deprecated Function

    - - -

    skewness() has been deprecated. Instead use ds_skewness().

    -

    References

    Sheskin, D.J. (2000) Handbook of Parametric and Nonparametric Statistical Procedures, Second Edition. Boca Raton, Florida: Chapman & Hall/CRC.

    @@ -184,8 +182,6 @@

    Contents

  • Details
  • -
  • Deprecated Function
  • -
  • References
  • See also
  • diff --git a/docs/reference/ds_std_error.html b/docs/reference/ds_std_error.html index 62622d8..8eefa2a 100644 --- a/docs/reference/ds_std_error.html +++ b/docs/reference/ds_std_error.html @@ -63,7 +63,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -80,10 +80,13 @@ diff --git a/docs/reference/ds_summary_stats.html b/docs/reference/ds_summary_stats.html index ed3ba39..23494c4 100644 --- a/docs/reference/ds_summary_stats.html +++ b/docs/reference/ds_summary_stats.html @@ -63,7 +63,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -80,10 +80,13 @@ @@ -134,7 +137,7 @@

    Descriptive statistics

    -
    ds_summary_stats(data, variable)
    +
    ds_summary_stats(data, ...)

    Arguments

    ydata

    A tibble or a data.frame.

    @@ -144,25 +147,21 @@

    Arg

    - - + +

    A data.frame or tibble.

    variable

    Column in data.

    ...

    Column(s) in data.

    -

    Deprecated function

    - - -

    summary_stats() has been deprecated. Instead use -ds_summary_stats().

    -

    See also

    -

    summary ds_freq_cont +

    Examples

    -
    ds_summary_stats(mtcarz, mpg)
    #> Univariate Analysis +
    ds_summary_stats(mtcarz, mpg)
    #> --------------------------------- Variable: mpg -------------------------------- +#> +#> Univariate Analysis #> #> N 32.00 Variance 36.32 #> Missing 0.00 Std Deviation 6.03 @@ -198,7 +197,10 @@

    Examp #> 16 10.4 18 32.4 #> 24 13.3 19 30.4 #> 7 14.3 28 30.4 -#> 17 14.7 26 27.3

    +#> 17 14.7 26 27.3 +#> +#> +#>
    @@ -80,10 +80,13 @@ @@ -163,14 +166,9 @@

    Details

    Any NA values are stripped from data before computation takes place.

    -

    Deprecated function

    - - -

    tailobs() has been deprecated. Instead use ds_tailobs().

    -

    See also

    - +

    Examples

    @@ -185,8 +183,6 @@

    Contents

  • Details
  • -
  • Deprecated function
  • -
  • See also
  • Examples
  • diff --git a/docs/reference/ds_tidy_stats.html b/docs/reference/ds_tidy_stats.html new file mode 100644 index 0000000..0b77200 --- /dev/null +++ b/docs/reference/ds_tidy_stats.html @@ -0,0 +1,216 @@ + + + + + + + + +Tidy descriptive statistics — ds_tidy_stats • descriptr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + +
    + +
    +
    + + +
    + +

    Descriptive statistics for multiple variables.

    + +
    + +
    ds_tidy_stats(data, ...)
    + +

    Arguments

    + + + + + + + + + + +
    data

    A tibble or a data.frame.

    ...

    Columns in x.

    + +

    Value

    + +

    A tibble.

    + +

    Deprecated Functions

    + + +

    ds_multi_stats() have been deprecated. Instead use ds_tidy_stats().

    + + +

    Examples

    +
    ds_tidy_stats(mtcarz)
    #> # A tibble: 6 x 16 +#> vars min max mean t_mean median mode range variance stdev skew +#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 disp 71.1 472 231. 228 196. 276. 401. 1.54e+4 124. 0.420 +#> 2 drat 2.76 4.93 3.60 3.58 3.70 3.07 2.17 2.86e-1 0.535 0.293 +#> 3 hp 52 335 147. 144. 123 110 283 4.70e+3 68.6 0.799 +#> 4 mpg 10.4 33.9 20.1 20.0 19.2 10.4 23.5 3.63e+1 6.03 0.672 +#> 5 qsec 14.5 22.9 17.8 17.8 17.7 17.0 8.40 3.19e+0 1.79 0.406 +#> 6 wt 1.51 5.42 3.22 3.20 3.32 3.44 3.91 9.57e-1 0.978 0.466 +#> # ... with 5 more variables: kurtosis <dbl>, coeff_var <dbl>, q1 <dbl>, +#> # q3 <dbl>, iqrange <dbl>
    ds_tidy_stats(mtcarz, mpg, disp, hp)
    #> # A tibble: 3 x 16 +#> vars min max mean t_mean median mode range variance stdev skew +#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> +#> 1 disp 71.1 472 231. 228 196. 276. 401. 15361. 124. 0.420 +#> 2 hp 52 335 147. 144. 123 110 283 4701. 68.6 0.799 +#> 3 mpg 10.4 33.9 20.1 20.0 19.2 10.4 23.5 36.3 6.03 0.672 +#> # ... with 5 more variables: kurtosis <dbl>, coeff_var <dbl>, q1 <dbl>, +#> # q3 <dbl>, iqrange <dbl>
    +
    +
    + +
    + + +
    + + + + + + diff --git a/docs/reference/hsb.html b/docs/reference/hsb.html index 503cb77..084353e 100644 --- a/docs/reference/hsb.html +++ b/docs/reference/hsb.html @@ -64,7 +64,7 @@ descriptr - 0.4.1.9000 + 0.5.0
    @@ -81,10 +81,13 @@ diff --git a/docs/reference/index.html b/docs/reference/index.html index 6c80fb5..3ff0e39 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -60,7 +60,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -77,10 +77,13 @@ @@ -135,7 +138,7 @@

    Reference

    Data Screening

    -

    The screener() function will screen data frames and return details such as variable names, class, levels and missing values. The plot.screener() creates bar plots to visualize % of missing observations for each variable in a data frame.

    +

    The screener() function will screen data frames and return details such as variable names, class, levels and missing values. The plot.screener() creates bar plots to visualize % of missing observations for each variable in a data frame.

    @@ -148,12 +151,18 @@

    -

    Descriptive Statistics

    -

    The following functions ease the process of generating and visualizing descriptive statistics for categorical and continuous data.

    +

    Continuous Data

    +

    The following functions ease the process of generating and visualizing descriptive statistics for continuous data.

    + +

    ds_auto_summary_stats()

    + +

    Descriptive statistics and frquency tables

    + +

    ds_summary_stats()

    @@ -161,9 +170,9 @@

    ds_cross_table() plot(<ds_cross_table>) ds_twoway_table()

    +

    ds_tidy_stats()

    -

    Two way table

    +

    Tidy descriptive statistics

    @@ -173,95 +182,135 @@

    ds_freq_cont() plot(<ds_freq_cont>)

    +

    ds_measures_location()

    -

    Frequency distribution of continuous data

    +

    Measures of location

    -

    ds_group_summary() plot(<ds_group_summary>)

    +

    ds_measures_variation()

    -

    Groupwise descriptive statistics

    +

    Measures of variation

    -

    ds_multi_stats()

    +

    ds_measures_symmetry()

    -

    Multiple variable statistics

    +

    Measures of symmetry

    -

    ds_oway_tables() ds_tway_tables()

    +

    ds_percentiles()

    -

    Multiple One & Two Way Tables

    +

    Percentiles

    -

    ds_measures_location()

    +

    ds_extreme_obs()

    -

    Measures of location

    - +

    Extreme observations

    + + + + +

    Categorical Data

    +

    The following functions ease the process of generating and visualizing descriptive statistics for categorical data.

    + + + -

    ds_measures_variation()

    +

    ds_freq_table() plot(<ds_freq_table>)

    -

    Measures of variation

    +

    Frequency table

    -

    ds_measures_symmetry()

    +

    ds_cross_table() plot(<ds_cross_table>) ds_twoway_table()

    -

    Measures of symmetry

    +

    Two way table

    -

    ds_percentiles()

    +

    ds_auto_freq_table() ds_auto_cross_table()

    -

    Percentiles

    +

    Multiple One & Two Way Tables

    + + + + +

    Grouped Summary

    +

    The following functions generate grouped summary statistics.

    + + + + + +

    ds_group_summary() plot(<ds_group_summary>)

    + +

    Groupwise descriptive statistics

    -

    ds_extreme_obs()

    +

    ds_auto_group_summary()

    -

    Extreme observations

    +

    Tabulation

    -

    Distributions

    -

    Visualize how different parameters affect the shape of a distribution. Compute/visualize probability from a given quantile and quantiles out of given probability.

    +

    Visualization

    +

    The following functions generate plots for different data types.

    -

    dist_norm_plot() dist_norm_perc() dist_norm_prob()

    +

    ds_plot_scatter()

    + +

    Generate scatter plots

    + + + +

    ds_plot_histogram()

    + +

    Generate histograms

    + + + +

    ds_plot_density()

    + +

    Generate density plots

    + + + +

    ds_plot_bar()

    -

    Visualize normal distribution

    +

    Generate bar plots

    -

    dist_binom_plot() dist_binom_prob() dist_binom_perc()

    +

    ds_plot_box_single()

    -

    Visualize binomial distribution

    +

    Generate box plots

    -

    dist_chi_plot() dist_chi_perc() dist_chi_prob()

    +

    ds_plot_box_group()

    -

    Visualize chi square distribution

    +

    Compare distributions

    -

    dist_f_plot() dist_f_perc() dist_f_prob()

    +

    ds_plot_bar_stacked()

    -

    Visualize f distribution

    +

    Generate stacked bar plots

    -

    dist_t_plot() dist_t_perc() dist_t_prob()

    +

    ds_plot_bar_grouped()

    -

    Visualize t distribution

    +

    Generate grouped bar plots

    @@ -365,8 +414,10 @@

    <

    Contents

    diff --git a/docs/reference/mtcarz.html b/docs/reference/mtcarz.html index d93b9b1..9ac2ad8 100644 --- a/docs/reference/mtcarz.html +++ b/docs/reference/mtcarz.html @@ -63,7 +63,7 @@ descriptr - 0.4.1.9000 + 0.5.0 @@ -80,10 +80,13 @@ diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 5ed6e39..98174a4 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -1,212 +1,144 @@ - - - - - - https://descriptr.rsquaredacademy.com/ - 2018-09-29T18:17:44+00:00 - 1.00 - - - https://descriptr.rsquaredacademy.com/index.html - 2018-09-29T18:17:44+00:00 - 0.80 - - - https://descriptr.rsquaredacademy.com/articles/descriptive-stats.html - 2018-09-29T18:17:44+00:00 - 0.80 - - - https://descriptr.rsquaredacademy.com/articles/distributions.html - 2018-09-29T18:17:44+00:00 - 0.80 - - - https://descriptr.rsquaredacademy.com/reference/index.html - 2018-09-29T18:17:44+00:00 - 0.80 - - - https://descriptr.rsquaredacademy.com/news/index.html - 2018-09-29T18:17:44+00:00 - 0.80 - - - https://descriptr.rsquaredacademy.com/reference/ds_launch_shiny_app.html - 2018-09-29T18:17:44+00:00 - 0.80 - - - https://descriptr.rsquaredacademy.com/reference/ds_summary_stats.html - 2018-09-29T18:17:44+00:00 - 0.80 - - - https://descriptr.rsquaredacademy.com/reference/ds_cross_table.html - 2018-09-29T18:17:44+00:00 - 0.80 - - - https://descriptr.rsquaredacademy.com/reference/ds_freq_table.html - 2018-09-29T18:17:44+00:00 - 0.80 - - - https://descriptr.rsquaredacademy.com/reference/ds_freq_cont.html - 2018-09-29T18:17:44+00:00 - 0.80 - - - https://descriptr.rsquaredacademy.com/reference/ds_group_summary.html - 2018-09-29T18:17:44+00:00 - 0.80 - - - https://descriptr.rsquaredacademy.com/reference/ds_multi_stats.html - 2018-09-29T18:17:44+00:00 - 0.80 - - - https://descriptr.rsquaredacademy.com/conduct - 2018-09-29T18:17:44+00:00 - 0.80 - - - https://descriptr.rsquaredacademy.com/license-text - 2018-09-29T18:17:44+00:00 - 0.80 - - - https://descriptr.rsquaredacademy.com/reference/ds_screener.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/ds_oway_tables.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/dist_norm_plot.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/dist_binom_plot.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/dist_chi_plot.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/dist_f_plot.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/dist_t.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/ds_measures_location.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/ds_measures_variation.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/ds_measures_symmetry.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/ds_percentiles.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/ds_extreme_obs.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/ds_kurtosis.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/ds_skewness.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/ds_mode.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/ds_range.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/ds_mdev.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/ds_cvar.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/ds_css.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/ds_gmean.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/ds_hmean.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/ds_tailobs.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/ds_rindex.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/hsb.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - https://descriptr.rsquaredacademy.com/reference/mtcarz.html - 2018-09-29T18:17:44+00:00 - 0.64 - - - - \ No newline at end of file + + + https://descriptr.rsquaredacademy.com/index.html + + + https://descriptr.rsquaredacademy.com/reference/descriptr.html + + + https://descriptr.rsquaredacademy.com/reference/dist_binom_plot.html + + + https://descriptr.rsquaredacademy.com/reference/dist_chi_plot.html + + + https://descriptr.rsquaredacademy.com/reference/dist_f_plot.html + + + https://descriptr.rsquaredacademy.com/reference/dist_norm_plot.html + + + https://descriptr.rsquaredacademy.com/reference/dist_t.html + + + https://descriptr.rsquaredacademy.com/reference/ds_auto_freq_table.html + + + https://descriptr.rsquaredacademy.com/reference/ds_auto_group_summary.html + + + https://descriptr.rsquaredacademy.com/reference/ds_auto_summary_stats.html + + + https://descriptr.rsquaredacademy.com/reference/ds_cross_table.html + + + https://descriptr.rsquaredacademy.com/reference/ds_css.html + + + https://descriptr.rsquaredacademy.com/reference/ds_cvar.html + + + https://descriptr.rsquaredacademy.com/reference/ds_extreme_obs.html + + + https://descriptr.rsquaredacademy.com/reference/ds_freq_table.html + + + https://descriptr.rsquaredacademy.com/reference/ds_gmean.html + + + https://descriptr.rsquaredacademy.com/reference/ds_group_summary.html + + + https://descriptr.rsquaredacademy.com/reference/ds_hmean.html + + + https://descriptr.rsquaredacademy.com/reference/ds_kurtosis.html + + + https://descriptr.rsquaredacademy.com/reference/ds_launch_shiny_app.html + + + https://descriptr.rsquaredacademy.com/reference/ds_mdev.html + + + https://descriptr.rsquaredacademy.com/reference/ds_measures_location.html + + + https://descriptr.rsquaredacademy.com/reference/ds_measures_symmetry.html + + + https://descriptr.rsquaredacademy.com/reference/ds_measures_variation.html + + + https://descriptr.rsquaredacademy.com/reference/ds_mode.html + + + https://descriptr.rsquaredacademy.com/reference/ds_percentiles.html + + + https://descriptr.rsquaredacademy.com/reference/ds_plot_bar.html + + + https://descriptr.rsquaredacademy.com/reference/ds_plot_bar_grouped.html + + + https://descriptr.rsquaredacademy.com/reference/ds_plot_bar_stacked.html + + + https://descriptr.rsquaredacademy.com/reference/ds_plot_box_group.html + + + https://descriptr.rsquaredacademy.com/reference/ds_plot_box_single.html + + + https://descriptr.rsquaredacademy.com/reference/ds_plot_density.html + + + https://descriptr.rsquaredacademy.com/reference/ds_plot_histogram.html + + + https://descriptr.rsquaredacademy.com/reference/ds_plot_scatter.html + + + https://descriptr.rsquaredacademy.com/reference/ds_range.html + + + https://descriptr.rsquaredacademy.com/reference/ds_rindex.html + + + https://descriptr.rsquaredacademy.com/reference/ds_screener.html + + + https://descriptr.rsquaredacademy.com/reference/ds_skewness.html + + + https://descriptr.rsquaredacademy.com/reference/ds_std_error.html + + + https://descriptr.rsquaredacademy.com/reference/ds_summary_stats.html + + + https://descriptr.rsquaredacademy.com/reference/ds_tailobs.html + + + https://descriptr.rsquaredacademy.com/reference/ds_tidy_stats.html + + + https://descriptr.rsquaredacademy.com/reference/hsb.html + + + https://descriptr.rsquaredacademy.com/reference/mtcarz.html + + + https://descriptr.rsquaredacademy.com/articles/categorical-data.html + + + https://descriptr.rsquaredacademy.com/articles/continuous-data.html + + + https://descriptr.rsquaredacademy.com/articles/visualization.html + + diff --git a/man/ds_auto_summary_stats.Rd b/man/ds_auto_summary_stats.Rd index 2c91acf..ff6f315 100644 --- a/man/ds_auto_summary_stats.Rd +++ b/man/ds_auto_summary_stats.Rd @@ -2,7 +2,7 @@ % Please edit documentation in R/ds-auto-summary.R \name{ds_auto_summary_stats} \alias{ds_auto_summary_stats} -\title{Summary statistics} +\title{Descriptive statistics and frquency tables} \usage{ ds_auto_summary_stats(data, ...) } @@ -12,7 +12,7 @@ ds_auto_summary_stats(data, ...) \item{...}{Column(s) in \code{data}.} } \description{ -Generate summary statistics for all continuous variables in data. +Generate summary statistics & frequency table for all continuous variables in data. } \examples{ ds_auto_summary_stats(mtcarz) diff --git a/man/ds_plot_box_group.Rd b/man/ds_plot_box_group.Rd index d267a30..fba140e 100644 --- a/man/ds_plot_box_group.Rd +++ b/man/ds_plot_box_group.Rd @@ -2,7 +2,7 @@ % Please edit documentation in R/ds-plots.R \name{ds_plot_box_group} \alias{ds_plot_box_group} -\title{Compate distributions} +\title{Compare distributions} \usage{ ds_plot_box_group(data, ...) } diff --git a/man/ds_plot_scatter.Rd b/man/ds_plot_scatter.Rd index ceb1223..31c7216 100644 --- a/man/ds_plot_scatter.Rd +++ b/man/ds_plot_scatter.Rd @@ -16,6 +16,6 @@ Creates scatter plots if the data has continuous variables. } \examples{ ds_plot_scatter(mtcarz) -ds_plot_scatter(mtcarz, mpg, disp, hp) +ds_plot_scatter(mtcarz, mpg, disp) } diff --git a/man/ds_tidy_stats.Rd b/man/ds_tidy_stats.Rd index f78cf19..41fab65 100644 --- a/man/ds_tidy_stats.Rd +++ b/man/ds_tidy_stats.Rd @@ -3,7 +3,7 @@ \name{ds_tidy_stats} \alias{ds_tidy_stats} \alias{ds_multi_stats} -\title{Multiple variable statistics} +\title{Tidy descriptive statistics} \usage{ ds_tidy_stats(data, ...) } diff --git a/revdep/.cache.rds b/revdep/.cache.rds new file mode 100644 index 0000000..508f785 Binary files /dev/null and b/revdep/.cache.rds differ diff --git a/revdep/.gitignore b/revdep/.gitignore new file mode 100644 index 0000000..31f6c40 --- /dev/null +++ b/revdep/.gitignore @@ -0,0 +1,6 @@ +checks +library +checks.noindex +library.noindex +data.sqlite +*.html diff --git a/revdep/README.md b/revdep/README.md new file mode 100644 index 0000000..1e9697d --- /dev/null +++ b/revdep/README.md @@ -0,0 +1,88 @@ +# Platform + +|field |value | +|:--------|:----------------------------| +|version |R version 3.5.1 (2018-07-02) | +|os |Windows >= 8 x64 | +|system |x86_64, mingw32 | +|ui |RStudio | +|language |(EN) | +|collate |English_India.1252 | +|ctype |English_India.1252 | +|tz |Asia/Calcutta | +|date |2019-01-21 | + +# Dependencies + +|package |old |new | | +|:-------------|:--------|:--------|:--| +|descriptr |0.4.1 |0.5.0 |* | +|assertthat |0.2.0 |0.2.0 | | +|BH |1.69.0-1 |1.69.0-1 | | +|bindr |0.1.1 |0.1.1 | | +|bindrcpp |0.2.2 |0.2.2 | | +|cli |1.0.1 |1.0.1 | | +|colorspace |1.4-0 |1.4-0 | | +|crayon |1.3.4 |1.3.4 | | +|digest |0.6.18 |0.6.18 | | +|dplyr |0.7.8 |0.7.8 | | +|fansi |0.4.0 |0.4.0 | | +|forcats |0.3.0 |0.3.0 | | +|ggplot2 |3.1.0 |3.1.0 | | +|glue |1.3.0 |1.3.0 | | +|gridExtra |NA |2.3 |* | +|gtable |0.2.0 |0.2.0 | | +|htmltools |0.3.6 |0.3.6 | | +|httpuv |1.4.5.1 |1.4.5.1 | | +|jsonlite |1.6 |1.6 | | +|labeling |0.3 |0.3 | | +|later |0.7.5 |0.7.5 | | +|lazyeval |0.2.1 |0.2.1 | | +|magrittr |1.5 |1.5 | | +|mime |0.6 |0.6 | | +|munsell |0.5.0 |0.5.0 | | +|pillar |1.3.1 |1.3.1 | | +|pkgconfig |2.0.2 |2.0.2 | | +|plogr |0.2.0 |0.2.0 | | +|plyr |1.8.4 |1.8.4 | | +|promises |1.0.1 |1.0.1 | | +|purrr |0.2.5 |0.2.5 | | +|R6 |2.3.0 |2.3.0 | | +|RColorBrewer |1.1-2 |1.1-2 | | +|Rcpp |1.0.0 |1.0.0 | | +|reshape2 |1.4.3 |1.4.3 | | +|rlang |0.3.1 |0.3.1 | | +|scales |1.0.0 |1.0.0 | | +|shiny |1.2.0 |1.2.0 | | +|sourcetools |0.1.7 |0.1.7 | | +|stringi |1.2.4 |1.2.4 | | +|stringr |1.3.1 |1.3.1 | | +|tibble |2.0.1 |2.0.1 | | +|tidyr |0.8.2 |0.8.2 | | +|tidyselect |0.2.5 |0.2.5 | | +|utf8 |1.1.4 |1.1.4 | | +|viridisLite |0.3.0 |0.3.0 | | +|vistributions |NA |0.1.0 |* | +|withr |2.1.2 |2.1.2 | | +|xplorerr |NA |0.1.0 |* | +|xtable |1.8-3 |1.8-3 | | + +# Revdeps + +## Couldn't check (3) + +|package |version |error |warning |note | +|:--------|:-------|:-----|:-------|:----| +|blorr |? | | | | +|olsrr |? | | | | +|xplorerr |? | | | | + +## All (4) + +|package |version |error |warning |note | +|:--------|:-------|:-----|:-------|:----| +|blorr |? | | | | +|inferr |0.3.0 | | | | +|olsrr |? | | | | +|xplorerr |? | | | | + diff --git a/revdep/email.yml b/revdep/email.yml new file mode 100644 index 0000000..18c2a59 --- /dev/null +++ b/revdep/email.yml @@ -0,0 +1,4 @@ +release_date: ??? +rel_release_date: ??? +my_news_url: ??? +release_version: ??? diff --git a/revdep/problems.md b/revdep/problems.md new file mode 100644 index 0000000..e69de29 diff --git a/tests/README.md b/tests/README.md index 43fa0e4..1a41330 100644 --- a/tests/README.md +++ b/tests/README.md @@ -1,6 +1,6 @@ Tests and Coverage ================ -18 January, 2019 23:31:53 +22 January, 2019 12:11:56 This output is created by [covrpage](https://github.com/yonicd/covrpage). @@ -12,29 +12,30 @@ Coverage summary is created using the | Object | Coverage (%) | | :---------------------------------------------------- | :----------: | -| descriptr | 64.78 | -| [R/ds-cross-mult.R](../R/ds-cross-mult.R) | 0.00 | -| [R/ds-freq-mult.R](../R/ds-freq-mult.R) | 0.00 | +| descriptr | 78.19 | | [R/ds-launch-shiny-app.R](../R/ds-launch-shiny-app.R) | 0.00 | | [R/zzz.R](../R/zzz.R) | 5.56 | -| [R/ds-mult-table.R](../R/ds-mult-table.R) | 41.38 | | [R/ds-plots.R](../R/ds-plots.R) | 41.84 | -| [R/ds-auto-summary.R](../R/ds-auto-summary.R) | 44.44 | -| [R/ds-freq-table.R](../R/ds-freq-table.R) | 65.38 | +| [R/ds-freq-table.R](../R/ds-freq-table.R) | 56.25 | +| [R/ds-freq-factor.R](../R/ds-freq-factor.R) | 65.33 | +| [R/ds-freq-numeric.R](../R/ds-freq-numeric.R) | 66.67 | | [R/ds-cross-table.R](../R/ds-cross-table.R) | 67.13 | -| [R/ds-freq-cont.R](../R/ds-freq-cont.R) | 67.86 | -| [R/ds-output.R](../R/ds-output.R) | 69.97 | +| [R/ds-multistats.R](../R/ds-multistats.R) | 71.43 | | [R/ds-screener.R](../R/ds-screener.R) | 71.64 | -| [R/ds-group-summary.R](../R/ds-group-summary.R) | 72.84 | -| [R/ds-summary-stats.R](../R/ds-summary-stats.R) | 74.60 | -| [R/ds-multistats.R](../R/ds-multistats.R) | 78.95 | -| [R/ds-utils.R](../R/ds-utils.R) | 91.14 | +| [R/ds-group-summary.R](../R/ds-group-summary.R) | 74.07 | +| [R/ds-freq-mult.R](../R/ds-freq-mult.R) | 86.79 | +| [R/ds-mult-table.R](../R/ds-mult-table.R) | 87.93 | +| [R/ds-utils.R](../R/ds-utils.R) | 91.77 | +| [R/ds-output.R](../R/ds-output.R) | 92.49 | +| [R/ds-auto-summary.R](../R/ds-auto-summary.R) | 93.65 | | [R/ds-describe.R](../R/ds-describe.R) | 97.86 | +| [R/ds-summary-stats.R](../R/ds-summary-stats.R) | 98.48 | | [R/dist-binomial.R](../R/dist-binomial.R) | 100.00 | | [R/dist-chisquare.R](../R/dist-chisquare.R) | 100.00 | | [R/dist-f.R](../R/dist-f.R) | 100.00 | | [R/dist-normal.R](../R/dist-normal.R) | 100.00 | | [R/dist-t.R](../R/dist-t.R) | 100.00 | +| [R/ds-cross-mult.R](../R/ds-cross-mult.R) | 100.00 |
    @@ -46,23 +47,22 @@ package. | | file | n | time | error | failed | skipped | warning | | -------------------- | :---------------------------------------------------- | -: | ----: | ----: | -----: | ------: | ------: | -| test-auto-summary.R | [test-auto-summary.R](testthat/test-auto-summary.R) | 11 | 11.38 | 0 | 0 | 0 | 0 | -| test-binom-dist.R | [test-binom-dist.R](testthat/test-binom-dist.R) | 3 | 8.91 | 0 | 0 | 0 | 0 | -| test-chi-dist.R | [test-chi-dist.R](testthat/test-chi-dist.R) | 3 | 8.20 | 0 | 0 | 0 | 0 | -| test-cross-table.R | [test-cross-table.R](testthat/test-cross-table.R) | 29 | 7.59 | 0 | 0 | 1 | 0 | -| test-describe.R | [test-describe.R](testthat/test-describe.R) | 97 | 12.58 | 0 | 0 | 0 | 0 | -| test-f-dist.R | [test-f-dist.R](testthat/test-f-dist.R) | 3 | 2.85 | 0 | 0 | 0 | 0 | -| test-freq-cont.R | [test-freq-cont.R](testthat/test-freq-cont.R) | 11 | 0.83 | 0 | 0 | 1 | 0 | -| test-freq-table.R | [test-freq-table.R](testthat/test-freq-table.R) | 8 | 0.83 | 0 | 0 | 1 | 0 | -| test-group-summary.R | [test-group-summary.R](testthat/test-group-summary.R) | 9 | 1.83 | 0 | 0 | 1 | 0 | -| test-multistats.R | [test-multistats.R](testthat/test-multistats.R) | 1 | 0.32 | 0 | 0 | 0 | 0 | -| test-normal-dist.R | [test-normal-dist.R](testthat/test-normal-dist.R) | 3 | 8.85 | 0 | 0 | 0 | 0 | -| test-output.R | [test-output.R](testthat/test-output.R) | 9 | 3.36 | 0 | 0 | 0 | 2 | -| test-plots.R | [test-plots.R](testthat/test-plots.R) | 21 | 17.88 | 0 | 0 | 0 | 0 | -| test-screen.R | [test-screen.R](testthat/test-screen.R) | 14 | 1.14 | 0 | 0 | 0 | 0 | -| test-summary-stats.R | [test-summary-stats.R](testthat/test-summary-stats.R) | 2 | 0.67 | 0 | 0 | 0 | 0 | -| test-t-dist.R | [test-t-dist.R](testthat/test-t-dist.R) | 3 | 5.09 | 0 | 0 | 0 | 0 | -| test-utils.R | [test-utils.R](testthat/test-utils.R) | 34 | 0.62 | 0 | 0 | 0 | 0 | +| test-auto-summary.R | [test-auto-summary.R](testthat/test-auto-summary.R) | 14 | 13.33 | 0 | 0 | 0 | 0 | +| test-binom-dist.R | [test-binom-dist.R](testthat/test-binom-dist.R) | 3 | 11.81 | 0 | 0 | 0 | 0 | +| test-chi-dist.R | [test-chi-dist.R](testthat/test-chi-dist.R) | 3 | 8.64 | 0 | 0 | 0 | 0 | +| test-cross-table.R | [test-cross-table.R](testthat/test-cross-table.R) | 29 | 10.16 | 0 | 0 | 1 | 0 | +| test-describe.R | [test-describe.R](testthat/test-describe.R) | 97 | 12.70 | 0 | 0 | 0 | 0 | +| test-f-dist.R | [test-f-dist.R](testthat/test-f-dist.R) | 3 | 5.75 | 0 | 0 | 0 | 0 | +| test-freq-table.R | [test-freq-table.R](testthat/test-freq-table.R) | 16 | 0.41 | 0 | 0 | 2 | 0 | +| test-group-summary.R | [test-group-summary.R](testthat/test-group-summary.R) | 9 | 2.67 | 0 | 0 | 1 | 0 | +| test-multistats.R | [test-multistats.R](testthat/test-multistats.R) | 1 | 0.33 | 0 | 0 | 0 | 0 | +| test-normal-dist.R | [test-normal-dist.R](testthat/test-normal-dist.R) | 3 | 7.08 | 0 | 0 | 0 | 0 | +| test-output.R | [test-output.R](testthat/test-output.R) | 7 | 3.24 | 0 | 0 | 0 | 0 | +| test-plots.R | [test-plots.R](testthat/test-plots.R) | 21 | 31.72 | 0 | 0 | 0 | 0 | +| test-screen.R | [test-screen.R](testthat/test-screen.R) | 14 | 1.05 | 0 | 0 | 0 | 0 | +| test-summary-stats.R | [test-summary-stats.R](testthat/test-summary-stats.R) | 3 | 1.54 | 0 | 0 | 0 | 0 | +| test-t-dist.R | [test-t-dist.R](testthat/test-t-dist.R) | 3 | 4.26 | 0 | 0 | 0 | 0 | +| test-utils.R | [test-utils.R](testthat/test-utils.R) | 35 | 0.42 | 0 | 0 | 0 | 0 |
    @@ -71,127 +71,129 @@ package. | file | context | test | status | n | time | | :------------------------------------------------------------ | :----------------- | :--------------------------------------------------------- | :------ | -: | ---: | -| [test-auto-summary.R](testthat/test-auto-summary.R#L7) | test-auto-summary | ds\_auto\_summary throws errors as expected | PASS | 2 | 2.05 | -| [test-auto-summary.R](testthat/test-auto-summary.R#L12) | test-auto-summary | ds\_auto\_group\_summary throws errors as expected | PASS | 4 | 4.28 | -| [test-auto-summary.R](testthat/test-auto-summary.R#L19) | test-auto-summary | ds\_auto\_tabulation throws errors as expected | PASS | 2 | 2.13 | -| [test-auto-summary.R](testthat/test-auto-summary.R#L24) | test-auto-summary | ds\_auto\_cross\_table throws errors as expected | PASS | 3 | 2.92 | -| [test-binom-dist.R](testthat/test-binom-dist.R#L4) | binom\_dist | dist\_binom\_plot throws the appropriate warning | PASS | 1 | 5.04 | -| [test-binom-dist.R](testthat/test-binom-dist.R#L8) | binom\_dist | dist\_binom\_prob throws the appropriate warning | PASS | 1 | 2.41 | -| [test-binom-dist.R](testthat/test-binom-dist.R#L12) | binom\_dist | dist\_binom\_perc throws the appropriate warning | PASS | 1 | 1.46 | -| [test-chi-dist.R](testthat/test-chi-dist.R#L4) | chi-dist | dist\_chi\_plot throws the appropriate warning | PASS | 1 | 0.17 | -| [test-chi-dist.R](testthat/test-chi-dist.R#L8) | chi-dist | dist\_chi\_prob throws the appropriate warning | PASS | 1 | 5.32 | -| [test-chi-dist.R](testthat/test-chi-dist.R#L12) | chi-dist | dist\_chi\_perc throws the appropriate warning | PASS | 1 | 2.71 | -| [test-cross-table.R](testthat/test-cross-table.R#L6) | ds\_cross\_table | output from ds\_cross\_table matches expected results | PASS | 21 | 0.18 | -| [test-cross-table.R](testthat/test-cross-table.R#L51) | ds\_cross\_table | ouput from plot.ds\_cross\_table matches expected output | SKIPPED | 1 | 0.00 | -| [test-cross-table.R](testthat/test-cross-table.R#L72) | ds\_cross\_table | ds\_cross\_table throws appropriate error | PASS | 3 | 3.10 | -| [test-cross-table.R](testthat/test-cross-table.R#L81) | ds\_cross\_table | output from ds\_twoway\_table is as expected | PASS | 1 | 0.47 | -| [test-cross-table.R](testthat/test-cross-table.R#L87) | ds\_cross\_table | ds\_twoway\_table throws appropriate error | PASS | 3 | 3.84 | -| [test-describe.R](testthat/test-describe.R#L4) | describe | output from ds\_tailobs match expected result | PASS | 2 | 0.14 | -| [test-describe.R](testthat/test-describe.R#L10) | describe | ds\_tailobs returns the appropriate error | PASS | 5 | 0.06 | -| [test-describe.R](testthat/test-describe.R#L19) | describe | output from ds\_rindex match expected result | PASS | 4 | 0.19 | -| [test-describe.R](testthat/test-describe.R#L27) | describe | ds\_rindex returns the appropriate error | PASS | 3 | 0.04 | -| [test-describe.R](testthat/test-describe.R#L34) | describe | output from ds\_skewness matches expected result | PASS | 6 | 0.08 | -| [test-describe.R](testthat/test-describe.R#L44) | describe | ds\_skewness returns the appropriate error | PASS | 2 | 0.03 | -| [test-describe.R](testthat/test-describe.R#L50) | describe | output from ds\_kurtosis matches expected result | PASS | 6 | 0.36 | -| [test-describe.R](testthat/test-describe.R#L60) | describe | ds\_kurtosis returns the appropriate error | PASS | 2 | 0.03 | -| [test-describe.R](testthat/test-describe.R#L66) | describe | ds\_css matches `Sum Sq` from anova | PASS | 6 | 0.44 | -| [test-describe.R](testthat/test-describe.R#L76) | describe | ds\_css returns the appropriate error | PASS | 2 | 0.11 | -| [test-describe.R](testthat/test-describe.R#L82) | describe | output from ds\_cvar matches the expected result | PASS | 2 | 0.03 | -| [test-describe.R](testthat/test-describe.R#L88) | describe | ds\_cvar returns the appropriate error | PASS | 2 | 0.02 | -| [test-describe.R](testthat/test-describe.R#L94) | describe | output from ds\_mode matches the expected result | PASS | 6 | 0.40 | -| [test-describe.R](testthat/test-describe.R#L104) | describe | ds\_mode returns the appropriate error | PASS | 2 | 0.07 | -| [test-describe.R](testthat/test-describe.R#L110) | describe | output from ds\_range matches the expected result | PASS | 6 | 0.15 | -| [test-describe.R](testthat/test-describe.R#L120) | describe | ds\_range returns the appropriate error | PASS | 2 | 0.02 | -| [test-describe.R](testthat/test-describe.R#L126) | describe | output from ds\_mdev matches the expected result | PASS | 6 | 0.05 | -| [test-describe.R](testthat/test-describe.R#L136) | describe | output from ds\_mdev matches the expected result | PASS | 2 | 0.02 | -| [test-describe.R](testthat/test-describe.R#L141) | describe | ds\_mdev returns the appropriate error | PASS | 2 | 0.01 | -| [test-describe.R](testthat/test-describe.R#L147) | describe | output from ds\_hmean matches the expected output | PASS | 3 | 0.02 | +| [test-auto-summary.R](testthat/test-auto-summary.R#L7) | test-auto-summary | ds\_auto\_summary throws errors as expected | PASS | 2 | 2.18 | +| [test-auto-summary.R](testthat/test-auto-summary.R#L12) | test-auto-summary | ds\_auto\_group\_summary throws errors as expected | PASS | 4 | 3.72 | +| [test-auto-summary.R](testthat/test-auto-summary.R#L19) | test-auto-summary | ds\_auto\_freq\_table throws errors as expected | PASS | 2 | 1.85 | +| [test-auto-summary.R](testthat/test-auto-summary.R#L24) | test-auto-summary | ds\_auto\_cross\_table throws errors as expected | PASS | 3 | 2.80 | +| [test-auto-summary.R](testthat/test-auto-summary.R#L94) | test-auto-summary | output from ds\_auto\_summary is as expected | PASS | 1 | 1.42 | +| [test-auto-summary.R](testthat/test-auto-summary.R#L124) | test-auto-summary | output from ds\_auto\_group\_summary is as expected | PASS | 1 | 1.00 | +| [test-auto-summary.R](testthat/test-auto-summary.R#L168) | test-auto-summary | output from ds\_auto\_cross\_table is as expected | PASS | 1 | 0.36 | +| [test-binom-dist.R](testthat/test-binom-dist.R#L4) | binom\_dist | dist\_binom\_plot throws the appropriate warning | PASS | 1 | 6.67 | +| [test-binom-dist.R](testthat/test-binom-dist.R#L8) | binom\_dist | dist\_binom\_prob throws the appropriate warning | PASS | 1 | 3.06 | +| [test-binom-dist.R](testthat/test-binom-dist.R#L12) | binom\_dist | dist\_binom\_perc throws the appropriate warning | PASS | 1 | 2.08 | +| [test-chi-dist.R](testthat/test-chi-dist.R#L4) | chi-dist | dist\_chi\_plot throws the appropriate warning | PASS | 1 | 0.21 | +| [test-chi-dist.R](testthat/test-chi-dist.R#L8) | chi-dist | dist\_chi\_prob throws the appropriate warning | PASS | 1 | 5.19 | +| [test-chi-dist.R](testthat/test-chi-dist.R#L12) | chi-dist | dist\_chi\_perc throws the appropriate warning | PASS | 1 | 3.24 | +| [test-cross-table.R](testthat/test-cross-table.R#L6) | ds\_cross\_table | output from ds\_cross\_table matches expected results | PASS | 21 | 0.79 | +| [test-cross-table.R](testthat/test-cross-table.R#L51) | ds\_cross\_table | ouput from plot.ds\_cross\_table matches expected output | SKIPPED | 1 | 0.01 | +| [test-cross-table.R](testthat/test-cross-table.R#L72) | ds\_cross\_table | ds\_cross\_table throws appropriate error | PASS | 3 | 3.29 | +| [test-cross-table.R](testthat/test-cross-table.R#L81) | ds\_cross\_table | output from ds\_twoway\_table is as expected | PASS | 1 | 0.19 | +| [test-cross-table.R](testthat/test-cross-table.R#L87) | ds\_cross\_table | ds\_twoway\_table throws appropriate error | PASS | 3 | 5.88 | +| [test-describe.R](testthat/test-describe.R#L4) | describe | output from ds\_tailobs match expected result | PASS | 2 | 0.16 | +| [test-describe.R](testthat/test-describe.R#L10) | describe | ds\_tailobs returns the appropriate error | PASS | 5 | 0.09 | +| [test-describe.R](testthat/test-describe.R#L19) | describe | output from ds\_rindex match expected result | PASS | 4 | 0.14 | +| [test-describe.R](testthat/test-describe.R#L27) | describe | ds\_rindex returns the appropriate error | PASS | 3 | 0.09 | +| [test-describe.R](testthat/test-describe.R#L34) | describe | output from ds\_skewness matches expected result | PASS | 6 | 0.11 | +| [test-describe.R](testthat/test-describe.R#L44) | describe | ds\_skewness returns the appropriate error | PASS | 2 | 0.05 | +| [test-describe.R](testthat/test-describe.R#L50) | describe | output from ds\_kurtosis matches expected result | PASS | 6 | 0.27 | +| [test-describe.R](testthat/test-describe.R#L60) | describe | ds\_kurtosis returns the appropriate error | PASS | 2 | 0.04 | +| [test-describe.R](testthat/test-describe.R#L66) | describe | ds\_css matches `Sum Sq` from anova | PASS | 6 | 0.63 | +| [test-describe.R](testthat/test-describe.R#L76) | describe | ds\_css returns the appropriate error | PASS | 2 | 0.04 | +| [test-describe.R](testthat/test-describe.R#L82) | describe | output from ds\_cvar matches the expected result | PASS | 2 | 0.08 | +| [test-describe.R](testthat/test-describe.R#L88) | describe | ds\_cvar returns the appropriate error | PASS | 2 | 0.10 | +| [test-describe.R](testthat/test-describe.R#L94) | describe | output from ds\_mode matches the expected result | PASS | 6 | 0.54 | +| [test-describe.R](testthat/test-describe.R#L104) | describe | ds\_mode returns the appropriate error | PASS | 2 | 0.02 | +| [test-describe.R](testthat/test-describe.R#L110) | describe | output from ds\_range matches the expected result | PASS | 6 | 0.11 | +| [test-describe.R](testthat/test-describe.R#L120) | describe | ds\_range returns the appropriate error | PASS | 2 | 0.01 | +| [test-describe.R](testthat/test-describe.R#L126) | describe | output from ds\_mdev matches the expected result | PASS | 6 | 0.13 | +| [test-describe.R](testthat/test-describe.R#L136) | describe | output from ds\_mdev matches the expected result | PASS | 2 | 0.01 | +| [test-describe.R](testthat/test-describe.R#L141) | describe | ds\_mdev returns the appropriate error | PASS | 2 | 0.02 | +| [test-describe.R](testthat/test-describe.R#L147) | describe | output from ds\_hmean matches the expected output | PASS | 3 | 0.06 | | [test-describe.R](testthat/test-describe.R#L153) | describe | ds\_hmean throws the appropriate error | PASS | 2 | 0.01 | -| [test-describe.R](testthat/test-describe.R#L159) | describe | output from ds\_gmean matches the expected output | PASS | 3 | 0.01 | +| [test-describe.R](testthat/test-describe.R#L159) | describe | output from ds\_gmean matches the expected output | PASS | 3 | 0.05 | | [test-describe.R](testthat/test-describe.R#L166) | describe | ds\_gmean throws the appropriate error | PASS | 2 | 0.02 | -| [test-describe.R](testthat/test-describe.R#L174) | describe | output from ds\_measures\_location is as expected | PASS | 1 | 0.31 | -| [test-describe.R](testthat/test-describe.R#L182) | describe | output from ds\_measures\_location is as expected | PASS | 1 | 0.21 | -| [test-describe.R](testthat/test-describe.R#L189) | describe | ds\_measures\_location throws appropriate errors | PASS | 1 | 0.98 | -| [test-describe.R](testthat/test-describe.R#L196) | describe | ds\_measures\_location throws appropriate errors | PASS | 1 | 1.05 | -| [test-describe.R](testthat/test-describe.R#L204) | describe | output from ds\_measures\_variation is as expected | PASS | 1 | 0.98 | -| [test-describe.R](testthat/test-describe.R#L212) | describe | output from ds\_measures\_variation is as expected | PASS | 1 | 0.33 | -| [test-describe.R](testthat/test-describe.R#L219) | describe | ds\_measures\_variation throws appropriate errors | PASS | 1 | 1.06 | -| [test-describe.R](testthat/test-describe.R#L226) | describe | ds\_measures\_variation throws appropriate errors | PASS | 1 | 0.85 | -| [test-describe.R](testthat/test-describe.R#L234) | describe | output from ds\_measures\_symmetry is as expected | PASS | 1 | 0.12 | -| [test-describe.R](testthat/test-describe.R#L242) | describe | output from ds\_measures\_symmetry is as expected | PASS | 1 | 0.05 | -| [test-describe.R](testthat/test-describe.R#L249) | describe | ds\_measures\_symmetry throws appropriate errors | PASS | 1 | 0.69 | -| [test-describe.R](testthat/test-describe.R#L256) | describe | ds\_measures\_symmetry throws appropriate errors | PASS | 1 | 0.60 | -| [test-describe.R](testthat/test-describe.R#L264) | describe | output from ds\_percentiles is as expected | PASS | 1 | 0.10 | -| [test-describe.R](testthat/test-describe.R#L272) | describe | output from ds\_percentiles is as expected | PASS | 1 | 0.15 | -| [test-describe.R](testthat/test-describe.R#L279) | describe | ds\_percentiles throws appropriate errors | PASS | 1 | 0.96 | -| [test-describe.R](testthat/test-describe.R#L286) | describe | ds\_percentiles throws appropriate errors | PASS | 1 | 0.73 | -| [test-describe.R](testthat/test-describe.R#L294) | describe | output from ds\_extreme\_obs is as expected | PASS | 1 | 0.02 | -| [test-describe.R](testthat/test-describe.R#L301) | describe | ds\_extreme\_obs throws appropriate errors | PASS | 1 | 0.55 | -| [test-describe.R](testthat/test-describe.R#L307) | describe | ds\_extreme\_obs throws appropriate errors | PASS | 1 | 0.53 | -| [test-f-dist.R](testthat/test-f-dist.R#L5) | f-dist | dist\_f\_plot throws the appropriate warning | PASS | 1 | 0.73 | -| [test-f-dist.R](testthat/test-f-dist.R#L9) | f-dist | dist\_f\_prob throws the appropriate warning | PASS | 1 | 0.92 | -| [test-f-dist.R](testthat/test-f-dist.R#L13) | f-dist | dist\_f\_perc throws the appropriate warning | PASS | 1 | 1.20 | -| [test-freq-cont.R](testthat/test-freq-cont.R#L5) | ds\_freq\_cont | output from ds\_freq\_cont matches expected result | PASS | 8 | 0.06 | -| [test-freq-cont.R](testthat/test-freq-cont.R#L19) | ds\_freq\_cont | ds\_freq\_cont returns appropriate errors | PASS | 2 | 0.75 | -| [test-freq-cont.R](testthat/test-freq-cont.R#L24) | ds\_freq\_cont | output from ds\_freq\_cont plot is as expected | SKIPPED | 1 | 0.02 | -| [test-freq-table.R](testthat/test-freq-table.R#L5) | freq\_table | output from ds\_freq\_table matches expected results | PASS | 6 | 0.08 | -| [test-freq-table.R](testthat/test-freq-table.R#L14) | freq\_table | ds\_freq\_table returns appropriate errors | PASS | 1 | 0.73 | -| [test-freq-table.R](testthat/test-freq-table.R#L18) | freq\_table | output from ds\_freq\_table plot is as expected | SKIPPED | 1 | 0.02 | -| [test-group-summary.R](testthat/test-group-summary.R#L14) | ds\_group\_summary | output from ds\_group\_summary matches the expected result | PASS | 6 | 0.27 | -| [test-group-summary.R](testthat/test-group-summary.R#L40_L43) | ds\_group\_summary | ds\_group\_summary throws the appropriate error | PASS | 2 | 1.54 | -| [test-group-summary.R](testthat/test-group-summary.R#L52) | ds\_group\_summary | output from ds\_group\_summary plot is as expected | SKIPPED | 1 | 0.02 | -| [test-multistats.R](testthat/test-multistats.R#L8) | multistats | output from multistats is as expected | PASS | 1 | 0.32 | -| [test-normal-dist.R](testthat/test-normal-dist.R#L4) | normal-dist | dist\_norm\_plot throws the appropriate warning | PASS | 1 | 2.04 | -| [test-normal-dist.R](testthat/test-normal-dist.R#L8) | normal-dist | dist\_norm\_prob throws the appropriate warning | PASS | 1 | 4.53 | -| [test-normal-dist.R](testthat/test-normal-dist.R#L12) | normal-dist | dist\_norm\_perc throws the appropriate warning | PASS | 1 | 2.28 | -| [test-output.R](testthat/test-output.R#L41) | print | output from print\_cross matches expected output | PASS | 1 | 0.56 | -| [test-output.R](testthat/test-output.R#L70) | print | output from print\_screener matches expected output | PASS | 1 | 0.19 | -| [test-output.R](testthat/test-output.R#L91) | print | output from print\_fcont matches the expected result | PASS | 1 | 0.39 | -| [test-output.R](testthat/test-output.R#L109) | print | output from freq\_table matches the expected result | PASS | 1 | 0.10 | -| [test-output.R](testthat/test-output.R#L137) | print | output from group\_summary matches the expected result | PASS | 1 | 0.48 | -| [test-output.R](testthat/test-output.R#L210) | print | output from print\_ftable2 matches the expected result | WARNING | 2 | 0.59 | -| [test-output.R](testthat/test-output.R#L300) | print | output from print\_cross2 matches the expected result | WARNING | 2 | 1.05 | -| [test-plots.R](testthat/test-plots.R#L7) | test-plots | ds\_plot\_scatter throws errors as expected | PASS | 3 | 2.55 | -| [test-plots.R](testthat/test-plots.R#L13) | test-plots | ds\_plot\_histogram throws errors as expected | PASS | 2 | 1.37 | -| [test-plots.R](testthat/test-plots.R#L18) | test-plots | ds\_plot\_density throws errors as expected | PASS | 2 | 1.32 | -| [test-plots.R](testthat/test-plots.R#L23) | test-plots | ds\_plot\_bar throws errors as expected | PASS | 2 | 1.37 | -| [test-plots.R](testthat/test-plots.R#L28) | test-plots | ds\_plot\_box\_single throws errors as expected | PASS | 2 | 2.19 | -| [test-plots.R](testthat/test-plots.R#L33) | test-plots | ds\_plot\_bar\_stacked throws errors as expected | PASS | 3 | 2.66 | -| [test-plots.R](testthat/test-plots.R#L39) | test-plots | ds\_plot\_bar\_grouped throws errors as expected | PASS | 3 | 2.72 | -| [test-plots.R](testthat/test-plots.R#L45) | test-plots | ds\_plot\_box\_group throws errors as expected | PASS | 4 | 3.70 | -| [test-screen.R](testthat/test-screen.R#L9) | ds\_screener | output from ds\_screener matches the expected result | PASS | 13 | 0.32 | -| [test-screen.R](testthat/test-screen.R#L48) | ds\_screener | ds\_screener throws the appropriate error | PASS | 1 | 0.82 | -| [test-summary-stats.R](testthat/test-summary-stats.R#L7) | test-summary-stats | output from ds\_summary\_stats is as expected | PASS | 1 | 0.07 | -| [test-summary-stats.R](testthat/test-summary-stats.R#L52) | test-summary-stats | output from ds\_summary\_stats is as expected | PASS | 1 | 0.60 | -| [test-t-dist.R](testthat/test-t-dist.R#L4) | t-dist | dist\_t\_plot throws the appropriate warning | PASS | 1 | 1.28 | -| [test-t-dist.R](testthat/test-t-dist.R#L8) | t-dist | dist\_t\_prob throws the appropriate warning | PASS | 1 | 2.03 | -| [test-t-dist.R](testthat/test-t-dist.R#L12) | t-dist | dist\_t\_perc throws the appropriate warning | PASS | 1 | 1.78 | -| [test-utils.R](testthat/test-utils.R#L4) | utils | output from formatc matches the expected result | PASS | 2 | 0.02 | -| [test-utils.R](testthat/test-utils.R#L10) | utils | output from formatl matches the expected result | PASS | 2 | 0.03 | -| [test-utils.R](testthat/test-utils.R#L16) | utils | output from formatr matches the expected result | PASS | 1 | 0.01 | -| [test-utils.R](testthat/test-utils.R#L21) | utils | output from formats matches the expected result | PASS | 1 | 0.00 | -| [test-utils.R](testthat/test-utils.R#L26) | utils | output from formatnc matches the expected result | PASS | 1 | 0.02 | -| [test-utils.R](testthat/test-utils.R#L31) | utils | output from format\_gap matches the expected result | PASS | 1 | 0.01 | -| [test-utils.R](testthat/test-utils.R#L36) | utils | output from formatol matches the expected result | PASS | 2 | 0.02 | -| [test-utils.R](testthat/test-utils.R#L42) | utils | output from l matches the expected result | PASS | 3 | 0.03 | -| [test-utils.R](testthat/test-utils.R#L49) | utils | output from percent matches the expected result | PASS | 2 | 0.03 | -| [test-utils.R](testthat/test-utils.R#L55) | utils | output from formata matches the expected result | PASS | 1 | 0.02 | -| [test-utils.R](testthat/test-utils.R#L60) | utils | output from formatas matches the expected result | PASS | 1 | 0.00 | +| [test-describe.R](testthat/test-describe.R#L174) | describe | output from ds\_measures\_location is as expected | PASS | 1 | 0.54 | +| [test-describe.R](testthat/test-describe.R#L182) | describe | output from ds\_measures\_location is as expected | PASS | 1 | 0.27 | +| [test-describe.R](testthat/test-describe.R#L189) | describe | ds\_measures\_location throws appropriate errors | PASS | 1 | 1.06 | +| [test-describe.R](testthat/test-describe.R#L196) | describe | ds\_measures\_location throws appropriate errors | PASS | 1 | 1.28 | +| [test-describe.R](testthat/test-describe.R#L204) | describe | output from ds\_measures\_variation is as expected | PASS | 1 | 0.11 | +| [test-describe.R](testthat/test-describe.R#L212) | describe | output from ds\_measures\_variation is as expected | PASS | 1 | 0.06 | +| [test-describe.R](testthat/test-describe.R#L219) | describe | ds\_measures\_variation throws appropriate errors | PASS | 1 | 0.97 | +| [test-describe.R](testthat/test-describe.R#L226) | describe | ds\_measures\_variation throws appropriate errors | PASS | 1 | 0.82 | +| [test-describe.R](testthat/test-describe.R#L234) | describe | output from ds\_measures\_symmetry is as expected | PASS | 1 | 0.04 | +| [test-describe.R](testthat/test-describe.R#L242) | describe | output from ds\_measures\_symmetry is as expected | PASS | 1 | 0.03 | +| [test-describe.R](testthat/test-describe.R#L249) | describe | ds\_measures\_symmetry throws appropriate errors | PASS | 1 | 0.80 | +| [test-describe.R](testthat/test-describe.R#L256) | describe | ds\_measures\_symmetry throws appropriate errors | PASS | 1 | 0.72 | +| [test-describe.R](testthat/test-describe.R#L264) | describe | output from ds\_percentiles is as expected | PASS | 1 | 0.11 | +| [test-describe.R](testthat/test-describe.R#L272) | describe | output from ds\_percentiles is as expected | PASS | 1 | 0.08 | +| [test-describe.R](testthat/test-describe.R#L279) | describe | ds\_percentiles throws appropriate errors | PASS | 1 | 0.75 | +| [test-describe.R](testthat/test-describe.R#L286) | describe | ds\_percentiles throws appropriate errors | PASS | 1 | 0.82 | +| [test-describe.R](testthat/test-describe.R#L294) | describe | output from ds\_extreme\_obs is as expected | PASS | 1 | 0.04 | +| [test-describe.R](testthat/test-describe.R#L301) | describe | ds\_extreme\_obs throws appropriate errors | PASS | 1 | 0.76 | +| [test-describe.R](testthat/test-describe.R#L307) | describe | ds\_extreme\_obs throws appropriate errors | PASS | 1 | 0.66 | +| [test-f-dist.R](testthat/test-f-dist.R#L5) | f-dist | dist\_f\_plot throws the appropriate warning | PASS | 1 | 1.85 | +| [test-f-dist.R](testthat/test-f-dist.R#L9) | f-dist | dist\_f\_prob throws the appropriate warning | PASS | 1 | 2.23 | +| [test-f-dist.R](testthat/test-f-dist.R#L13) | f-dist | dist\_f\_perc throws the appropriate warning | PASS | 1 | 1.67 | +| [test-freq-table.R](testthat/test-freq-table.R#L5) | freq\_table | output from ds\_freq\_table matches expected results | PASS | 6 | 0.27 | +| [test-freq-table.R](testthat/test-freq-table.R#L15) | freq\_table | output from ds\_freq\_table plot is as expected | SKIPPED | 1 | 0.00 | +| [test-freq-table.R](testthat/test-freq-table.R#L24) | freq\_table | output from ds\_freq\_cont matches expected result | PASS | 8 | 0.14 | +| [test-freq-table.R](testthat/test-freq-table.R#L35) | freq\_table | output from ds\_freq\_table plot is as expected | SKIPPED | 1 | 0.00 | +| [test-group-summary.R](testthat/test-group-summary.R#L14) | ds\_group\_summary | output from ds\_group\_summary matches the expected result | PASS | 6 | 0.57 | +| [test-group-summary.R](testthat/test-group-summary.R#L40_L43) | ds\_group\_summary | ds\_group\_summary throws the appropriate error | PASS | 2 | 2.10 | +| [test-group-summary.R](testthat/test-group-summary.R#L52) | ds\_group\_summary | output from ds\_group\_summary plot is as expected | SKIPPED | 1 | 0.00 | +| [test-multistats.R](testthat/test-multistats.R#L8) | multistats | output from multistats is as expected | PASS | 1 | 0.33 | +| [test-normal-dist.R](testthat/test-normal-dist.R#L4) | normal-dist | dist\_norm\_plot throws the appropriate warning | PASS | 1 | 2.25 | +| [test-normal-dist.R](testthat/test-normal-dist.R#L8) | normal-dist | dist\_norm\_prob throws the appropriate warning | PASS | 1 | 2.31 | +| [test-normal-dist.R](testthat/test-normal-dist.R#L12) | normal-dist | dist\_norm\_perc throws the appropriate warning | PASS | 1 | 2.52 | +| [test-output.R](testthat/test-output.R#L41) | print | output from print\_cross matches expected output | PASS | 1 | 0.21 | +| [test-output.R](testthat/test-output.R#L70) | print | output from print\_screener matches expected output | PASS | 1 | 0.15 | +| [test-output.R](testthat/test-output.R#L91) | print | output from print\_fcont matches the expected result | PASS | 1 | 0.33 | +| [test-output.R](testthat/test-output.R#L109) | print | output from freq\_table matches the expected result | PASS | 1 | 0.19 | +| [test-output.R](testthat/test-output.R#L137) | print | output from group\_summary matches the expected result | PASS | 1 | 0.95 | +| [test-output.R](testthat/test-output.R#L210) | print | output from print\_ftable2 matches the expected result | PASS | 1 | 0.74 | +| [test-output.R](testthat/test-output.R#L300) | print | output from print\_cross2 matches the expected result | PASS | 1 | 0.67 | +| [test-plots.R](testthat/test-plots.R#L7) | test-plots | ds\_plot\_scatter throws errors as expected | PASS | 3 | 3.18 | +| [test-plots.R](testthat/test-plots.R#L13) | test-plots | ds\_plot\_histogram throws errors as expected | PASS | 2 | 2.04 | +| [test-plots.R](testthat/test-plots.R#L18) | test-plots | ds\_plot\_density throws errors as expected | PASS | 2 | 1.83 | +| [test-plots.R](testthat/test-plots.R#L23) | test-plots | ds\_plot\_bar throws errors as expected | PASS | 2 | 2.20 | +| [test-plots.R](testthat/test-plots.R#L28) | test-plots | ds\_plot\_box\_single throws errors as expected | PASS | 2 | 2.83 | +| [test-plots.R](testthat/test-plots.R#L33) | test-plots | ds\_plot\_bar\_stacked throws errors as expected | PASS | 3 | 6.53 | +| [test-plots.R](testthat/test-plots.R#L39) | test-plots | ds\_plot\_bar\_grouped throws errors as expected | PASS | 3 | 6.70 | +| [test-plots.R](testthat/test-plots.R#L45) | test-plots | ds\_plot\_box\_group throws errors as expected | PASS | 4 | 6.41 | +| [test-screen.R](testthat/test-screen.R#L9) | ds\_screener | output from ds\_screener matches the expected result | PASS | 13 | 0.27 | +| [test-screen.R](testthat/test-screen.R#L48) | ds\_screener | ds\_screener throws the appropriate error | PASS | 1 | 0.78 | +| [test-summary-stats.R](testthat/test-summary-stats.R#L7) | test-summary-stats | output from ds\_summary is as expected | PASS | 1 | 0.05 | +| [test-summary-stats.R](testthat/test-summary-stats.R#L13) | test-summary-stats | ds\_summary\_stats throws appropriate errors | PASS | 2 | 1.49 | +| [test-t-dist.R](testthat/test-t-dist.R#L4) | t-dist | dist\_t\_plot throws the appropriate warning | PASS | 1 | 0.95 | +| [test-t-dist.R](testthat/test-t-dist.R#L8) | t-dist | dist\_t\_prob throws the appropriate warning | PASS | 1 | 1.74 | +| [test-t-dist.R](testthat/test-t-dist.R#L12) | t-dist | dist\_t\_perc throws the appropriate warning | PASS | 1 | 1.57 | +| [test-utils.R](testthat/test-utils.R#L4) | utils | output from formatc matches the expected result | PASS | 2 | 0.05 | +| [test-utils.R](testthat/test-utils.R#L10) | utils | output from formatl matches the expected result | PASS | 2 | 0.06 | +| [test-utils.R](testthat/test-utils.R#L16) | utils | output from formatr matches the expected result | PASS | 1 | 0.02 | +| [test-utils.R](testthat/test-utils.R#L21) | utils | output from formats matches the expected result | PASS | 1 | 0.01 | +| [test-utils.R](testthat/test-utils.R#L26) | utils | output from formatnc matches the expected result | PASS | 1 | 0.00 | +| [test-utils.R](testthat/test-utils.R#L31) | utils | output from format\_gap matches the expected result | PASS | 1 | 0.00 | +| [test-utils.R](testthat/test-utils.R#L36) | utils | output from formatol matches the expected result | PASS | 2 | 0.00 | +| [test-utils.R](testthat/test-utils.R#L42) | utils | output from l matches the expected result | PASS | 3 | 0.04 | +| [test-utils.R](testthat/test-utils.R#L49) | utils | output from percent matches the expected result | PASS | 2 | 0.00 | +| [test-utils.R](testthat/test-utils.R#L55) | utils | output from formata matches the expected result | PASS | 1 | 0.04 | +| [test-utils.R](testthat/test-utils.R#L60) | utils | output from formatas matches the expected result | PASS | 1 | 0.01 | | [test-utils.R](testthat/test-utils.R#L65) | utils | output from formatter\_freq matches the expected result | PASS | 1 | 0.00 | | [test-utils.R](testthat/test-utils.R#L72) | utils | output from row\_pct matches the expected result | PASS | 1 | 0.02 | -| [test-utils.R](testthat/test-utils.R#L79) | utils | output from col\_pct matches the expected result | PASS | 1 | 0.01 | -| [test-utils.R](testthat/test-utils.R#L84) | utils | output from formatter matches the expected result | PASS | 1 | 0.02 | -| [test-utils.R](testthat/test-utils.R#L89) | utils | output from fround matches the expected result | PASS | 1 | 0.05 | -| [test-utils.R](testthat/test-utils.R#L94) | utils | output form xmm matches the expected result | PASS | 1 | 0.01 | -| [test-utils.R](testthat/test-utils.R#L98) | utils | output from seql matches the expected result | PASS | 1 | 0.08 | -| [test-utils.R](testthat/test-utils.R#L102) | utils | output form xmmp matches the expected result | PASS | 2 | 0.05 | -| [test-utils.R](testthat/test-utils.R#L107) | utils | output from seqlp matches the expected result | PASS | 2 | 0.04 | -| [test-utils.R](testthat/test-utils.R#L113) | utils | output form xmn matches the expected result | PASS | 1 | 0.04 | -| [test-utils.R](testthat/test-utils.R#L117) | utils | output from seqln matches the expected result | PASS | 1 | 0.03 | -| [test-utils.R](testthat/test-utils.R#L123) | utils | output from intervals matches expected result | PASS | 1 | 0.01 | -| [test-utils.R](testthat/test-utils.R#L128_L131) | utils | output from freq matches the expected result | PASS | 1 | 0.02 | -| [test-utils.R](testthat/test-utils.R#L135) | utils | output from stat\_uss matches the expected result | PASS | 1 | 0.03 | -| [test-utils.R](testthat/test-utils.R#L140) | utils | output from div\_by matches the expected result | PASS | 1 | 0.02 | +| [test-utils.R](testthat/test-utils.R#L79) | utils | output from col\_pct matches the expected result | PASS | 1 | 0.00 | +| [test-utils.R](testthat/test-utils.R#L84) | utils | output from formatter matches the expected result | PASS | 1 | 0.01 | +| [test-utils.R](testthat/test-utils.R#L89) | utils | output from fround matches the expected result | PASS | 1 | 0.02 | +| [test-utils.R](testthat/test-utils.R#L94) | utils | output form xmm matches the expected result | PASS | 1 | 0.00 | +| [test-utils.R](testthat/test-utils.R#L98) | utils | output from seql matches the expected result | PASS | 1 | 0.01 | +| [test-utils.R](testthat/test-utils.R#L102) | utils | output form xmmp matches the expected result | PASS | 2 | 0.02 | +| [test-utils.R](testthat/test-utils.R#L107) | utils | output from seqlp matches the expected result | PASS | 2 | 0.02 | +| [test-utils.R](testthat/test-utils.R#L113) | utils | output form xmn matches the expected result | PASS | 1 | 0.00 | +| [test-utils.R](testthat/test-utils.R#L117) | utils | output from seqln matches the expected result | PASS | 1 | 0.01 | +| [test-utils.R](testthat/test-utils.R#L123) | utils | output from intervals matches expected result | PASS | 1 | 0.02 | +| [test-utils.R](testthat/test-utils.R#L128_L131) | utils | output from freq matches the expected result | PASS | 1 | 0.00 | +| [test-utils.R](testthat/test-utils.R#L135) | utils | output from stat\_uss matches the expected result | PASS | 1 | 0.01 | +| [test-utils.R](testthat/test-utils.R#L140) | utils | output from div\_by matches the expected result | PASS | 1 | 0.05 | +| [test-utils.R](testthat/test-utils.R#L144) | utils | output from uss is as expected | PASS | 1 | 0.00 |
    diff --git a/tests/README_files/figure-markdown_github/tests-1.png b/tests/README_files/figure-markdown_github/tests-1.png deleted file mode 100644 index 578f3c4..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-1.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-10.png b/tests/README_files/figure-markdown_github/tests-10.png deleted file mode 100644 index 9abe127..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-10.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-11.png b/tests/README_files/figure-markdown_github/tests-11.png deleted file mode 100644 index 429aca1..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-11.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-12.png b/tests/README_files/figure-markdown_github/tests-12.png deleted file mode 100644 index 9abe127..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-12.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-13.png b/tests/README_files/figure-markdown_github/tests-13.png deleted file mode 100644 index 3b576d7..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-13.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-14.png b/tests/README_files/figure-markdown_github/tests-14.png deleted file mode 100644 index a529a0c..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-14.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-15.png b/tests/README_files/figure-markdown_github/tests-15.png deleted file mode 100644 index f51a0a2..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-15.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-16.png b/tests/README_files/figure-markdown_github/tests-16.png deleted file mode 100644 index 4ab4caf..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-16.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-17.png b/tests/README_files/figure-markdown_github/tests-17.png deleted file mode 100644 index f51a0a2..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-17.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-18.png b/tests/README_files/figure-markdown_github/tests-18.png deleted file mode 100644 index e36c166..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-18.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-19.png b/tests/README_files/figure-markdown_github/tests-19.png deleted file mode 100644 index 247e03d..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-19.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-2.png b/tests/README_files/figure-markdown_github/tests-2.png deleted file mode 100644 index b439d6a..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-2.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-20.png b/tests/README_files/figure-markdown_github/tests-20.png deleted file mode 100644 index b2a6321..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-20.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-21.png b/tests/README_files/figure-markdown_github/tests-21.png deleted file mode 100644 index b516968..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-21.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-22.png b/tests/README_files/figure-markdown_github/tests-22.png deleted file mode 100644 index c4ad147..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-22.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-23.png b/tests/README_files/figure-markdown_github/tests-23.png deleted file mode 100644 index 52a826c..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-23.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-24.png b/tests/README_files/figure-markdown_github/tests-24.png deleted file mode 100644 index 91b9c3c..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-24.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-25.png b/tests/README_files/figure-markdown_github/tests-25.png deleted file mode 100644 index 7645d17..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-25.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-26.png b/tests/README_files/figure-markdown_github/tests-26.png deleted file mode 100644 index 79c1c06..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-26.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-27.png b/tests/README_files/figure-markdown_github/tests-27.png deleted file mode 100644 index 121ace1..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-27.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-28.png b/tests/README_files/figure-markdown_github/tests-28.png deleted file mode 100644 index 3a118b3..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-28.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-29.png b/tests/README_files/figure-markdown_github/tests-29.png deleted file mode 100644 index 03ba069..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-29.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-3.png b/tests/README_files/figure-markdown_github/tests-3.png deleted file mode 100644 index 744d8b2..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-3.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-30.png b/tests/README_files/figure-markdown_github/tests-30.png deleted file mode 100644 index 68f8e59..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-30.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-31.png b/tests/README_files/figure-markdown_github/tests-31.png deleted file mode 100644 index b9670a2..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-31.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-32.png b/tests/README_files/figure-markdown_github/tests-32.png deleted file mode 100644 index 326cfa8..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-32.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-33.png b/tests/README_files/figure-markdown_github/tests-33.png deleted file mode 100644 index b89cef9..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-33.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-34.png b/tests/README_files/figure-markdown_github/tests-34.png deleted file mode 100644 index 1fcd013..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-34.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-35.png b/tests/README_files/figure-markdown_github/tests-35.png deleted file mode 100644 index 8325322..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-35.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-36.png b/tests/README_files/figure-markdown_github/tests-36.png deleted file mode 100644 index b7dec74..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-36.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-37.png b/tests/README_files/figure-markdown_github/tests-37.png deleted file mode 100644 index 9d18af6..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-37.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-38.png b/tests/README_files/figure-markdown_github/tests-38.png deleted file mode 100644 index 8129c27..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-38.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-39.png b/tests/README_files/figure-markdown_github/tests-39.png deleted file mode 100644 index 5ad85b8..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-39.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-4.png b/tests/README_files/figure-markdown_github/tests-4.png deleted file mode 100644 index 33b1ca2..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-4.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-40.png b/tests/README_files/figure-markdown_github/tests-40.png deleted file mode 100644 index 62abb2a..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-40.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-41.png b/tests/README_files/figure-markdown_github/tests-41.png deleted file mode 100644 index 4c820dd..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-41.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-42.png b/tests/README_files/figure-markdown_github/tests-42.png deleted file mode 100644 index c557f19..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-42.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-43.png b/tests/README_files/figure-markdown_github/tests-43.png deleted file mode 100644 index 09605c1..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-43.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-44.png b/tests/README_files/figure-markdown_github/tests-44.png deleted file mode 100644 index 11e8593..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-44.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-45.png b/tests/README_files/figure-markdown_github/tests-45.png deleted file mode 100644 index f7325fe..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-45.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-46.png b/tests/README_files/figure-markdown_github/tests-46.png deleted file mode 100644 index d7d83dc..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-46.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-47.png b/tests/README_files/figure-markdown_github/tests-47.png deleted file mode 100644 index 4ed319b..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-47.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-48.png b/tests/README_files/figure-markdown_github/tests-48.png deleted file mode 100644 index 6f22722..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-48.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-49.png b/tests/README_files/figure-markdown_github/tests-49.png deleted file mode 100644 index 1092064..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-49.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-5.png b/tests/README_files/figure-markdown_github/tests-5.png deleted file mode 100644 index d014d2e..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-5.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-50.png b/tests/README_files/figure-markdown_github/tests-50.png deleted file mode 100644 index 5a2fb9e..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-50.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-51.png b/tests/README_files/figure-markdown_github/tests-51.png deleted file mode 100644 index a3c57c9..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-51.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-52.png b/tests/README_files/figure-markdown_github/tests-52.png deleted file mode 100644 index a13e7a6..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-52.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-53.png b/tests/README_files/figure-markdown_github/tests-53.png deleted file mode 100644 index 22782ae..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-53.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-54.png b/tests/README_files/figure-markdown_github/tests-54.png deleted file mode 100644 index e314185..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-54.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-55.png b/tests/README_files/figure-markdown_github/tests-55.png deleted file mode 100644 index 5ac9af4..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-55.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-56.png b/tests/README_files/figure-markdown_github/tests-56.png deleted file mode 100644 index 77af694..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-56.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-57.png b/tests/README_files/figure-markdown_github/tests-57.png deleted file mode 100644 index 214732a..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-57.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-6.png b/tests/README_files/figure-markdown_github/tests-6.png deleted file mode 100644 index 9b8cac9..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-6.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-7.png b/tests/README_files/figure-markdown_github/tests-7.png deleted file mode 100644 index d014d2e..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-7.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-8.png b/tests/README_files/figure-markdown_github/tests-8.png deleted file mode 100644 index c1c07d6..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-8.png and /dev/null differ diff --git a/tests/README_files/figure-markdown_github/tests-9.png b/tests/README_files/figure-markdown_github/tests-9.png deleted file mode 100644 index 0c53c83..0000000 Binary files a/tests/README_files/figure-markdown_github/tests-9.png and /dev/null differ diff --git a/tests/testthat/test-mult-table.R b/tests/testthat/test-mult-table.R deleted file mode 100644 index 8b13789..0000000 --- a/tests/testthat/test-mult-table.R +++ /dev/null @@ -1 +0,0 @@ - diff --git a/vignettes/categorical-data.Rmd b/vignettes/categorical-data.Rmd index 7b37ab6..f638013 100644 --- a/vignettes/categorical-data.Rmd +++ b/vignettes/categorical-data.Rmd @@ -1,6 +1,6 @@ -use--- +--- title: "Categorical Data" -author: "Vignette Author" +author: "Aravind Hebbali" date: "`r Sys.Date()`" output: rmarkdown::html_vignette vignette: > diff --git a/vignettes/tests_and_coverage.Rmd b/vignettes/tests_and_coverage.Rmd index 15cdb26..686defa 100644 --- a/vignettes/tests_and_coverage.Rmd +++ b/vignettes/tests_and_coverage.Rmd @@ -17,176 +17,217 @@ knitr::opts_chunk$set( ``` -- [Coverage](#coverage) -- [Unit Tests](#unit-tests) +This output is created by +[covrpage](https://github.com/yonicd/covrpage). -This output is created by [covrpage](https://github.com/yonicd/covrpage). +## Coverage -Coverage --------- - -Coverage summary is created using the [covr](https://github.com/r-lib/covr) package. +Coverage summary is created using the +[covr](https://github.com/r-lib/covr) package. | Object | Coverage (%) | -|:------------------------------------------------------|:------------:| -| descriptr | 72.72 | +| :---------------------------------------------------- | :----------: | +| descriptr | 78.19 | | [R/ds-launch-shiny-app.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-launch-shiny-app.R) | 0.00 | -| [R/ds-summary-stats.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-summary-stats.R) | 0.00 | -| [R/ds-cross-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-cross-table.R) | 37.31 | -| [R/ds-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-describe.R) | 56.36 | -| [R/ds-freq-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-freq-table.R) | 64.10 | -| [R/ds-freq-cont.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-freq-cont.R) | 66.67 | -| [R/dist-binomial.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/dist-binomial.R) | 70.69 | -| [R/ds-group-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-group-summary.R) | 71.08 | -| [R/ds-screener.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-screener.R) | 71.23 | -| [R/dist-f.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/dist-f.R) | 73.33 | -| [R/dist-chisquare.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/dist-chisquare.R) | 73.68 | -| [R/dist-normal.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/dist-normal.R) | 77.51 | -| [R/ds-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-output.R) | 78.28 | -| [R/ds-mult-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-mult-table.R) | 79.49 | -| [R/ds-multistats.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-multistats.R) | 84.62 | -| [R/ds-freq-mult.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-freq-mult.R) | 86.79 | -| [R/dist-t.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/dist-t.R) | 87.55 | -| [R/ds-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-utils.R) | 96.84 | +| [R/zzz.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/zzz.R) | 5.56 | +| [R/ds-plots.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-plots.R) | 41.84 | +| [R/ds-freq-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-freq-table.R) | 56.25 | +| [R/ds-freq-factor.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-freq-factor.R) | 65.33 | +| [R/ds-freq-numeric.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-freq-numeric.R) | 66.67 | +| [R/ds-cross-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-cross-table.R) | 67.13 | +| [R/ds-multistats.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-multistats.R) | 71.43 | +| [R/ds-screener.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-screener.R) | 71.64 | +| [R/ds-group-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-group-summary.R) | 74.07 | +| [R/ds-freq-mult.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-freq-mult.R) | 86.79 | +| [R/ds-mult-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-mult-table.R) | 87.93 | +| [R/ds-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-utils.R) | 91.77 | +| [R/ds-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-output.R) | 92.49 | +| [R/ds-auto-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-auto-summary.R) | 93.65 | +| [R/ds-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-describe.R) | 97.86 | +| [R/ds-summary-stats.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-summary-stats.R) | 98.48 | +| [R/dist-binomial.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/dist-binomial.R) | 100.00 | +| [R/dist-chisquare.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/dist-chisquare.R) | 100.00 | +| [R/dist-f.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/dist-f.R) | 100.00 | +| [R/dist-normal.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/dist-normal.R) | 100.00 | +| [R/dist-t.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/dist-t.R) | 100.00 | | [R/ds-cross-mult.R](https://github.com/rsquaredacademy/descriptr/tree/develop/R/ds-cross-mult.R) | 100.00 |
    -Unit Tests ----------- - -Unit Test summary is created using the [testthat](https://github.com/r-lib/testthat) package. - -| | file | n| time| error| failed| skipped| warning| -|----------------------|:------------------------------------------------------|----:|-----:|------:|-------:|--------:|--------:| -| test-binom-dist.R | [test-binom-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-binom-dist.R) | 49| 3.29| 0| 0| 0| 0| -| test-chi-dist.R | [test-chi-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-chi-dist.R) | 20| 1.37| 0| 0| 0| 0| -| test-cross-table.R | [test-cross-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-cross-table.R) | 22| 0.62| 0| 0| 1| 0| -| test-describe.R | [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R) | 78| 1.48| 0| 0| 0| 0| -| test-f-dist.R | [test-f-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-f-dist.R) | 18| 0.55| 0| 0| 0| 0| -| test-freq-cont.R | [test-freq-cont.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-freq-cont.R) | 11| 0.11| 0| 0| 1| 0| -| test-freq-table.R | [test-freq-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-freq-table.R) | 8| 0.09| 0| 0| 1| 0| -| test-group-summary.R | [test-group-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-group-summary.R) | 9| 0.58| 0| 0| 1| 0| -| test-multistats.R | [test-multistats.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-multistats.R) | 1| 0.28| 0| 0| 0| 0| -| test-normal-dist.R | [test-normal-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-normal-dist.R) | 30| 1.92| 0| 0| 0| 0| -| test-output.R | [test-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-output.R) | 7| 1.85| 0| 0| 0| 0| -| test-screen.R | [test-screen.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-screen.R) | 14| 0.14| 0| 0| 0| 0| -| test-t-dist.R | [test-t-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-t-dist.R) | 24| 1.88| 0| 0| 0| 0| -| test-utils.R | [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R) | 34| 0.35| 0| 0| 0| 0| - -
    Show Detailed Test Results - -| file | context | test | status | n| time| -|:--------------------------------------------------------------|:-------------------|:-----------------------------------------------------------|:--------|----:|-----:| -| [test-binom-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-binom-dist.R#L5) | binom\_dist | output from dist\_binom\_plot matches expected result | PASS | 8| 0.95| -| [test-binom-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-binom-dist.R#L23) | binom\_dist | dist\_binom\_plot throws the appropriate errors | PASS | 6| 0.05| -| [test-binom-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-binom-dist.R#L34) | binom\_dist | output from dist\_binom\_prob matches expected result | PASS | 18| 2.14| -| [test-binom-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-binom-dist.R#L84) | binom\_dist | dist\_binom\_prob throws the appropriate errors | PASS | 7| 0.06| -| [test-binom-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-binom-dist.R#L94) | binom\_dist | dist\_dist\_binom\_perc throws the appropriate errors | PASS | 10| 0.09| -| [test-chi-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-chi-dist.R#L4) | chi-dist | dist\_chi\_plot returns appropriate error messages | PASS | 4| 0.03| -| [test-chi-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-chi-dist.R#L18) | chi-dist | output from dist\_chi\_perc matches expected results | PASS | 4| 0.64| -| [test-chi-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-chi-dist.R#L33) | chi-dist | dist\_chi\_perc returns appropriate error messages | PASS | 4| 0.03| -| [test-chi-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-chi-dist.R#L47) | chi-dist | output from dist\_chi\_prob matches expected result | PASS | 4| 0.63| -| [test-chi-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-chi-dist.R#L61) | chi-dist | dist\_chi\_prob returns appropriate error messages | PASS | 4| 0.04| -| [test-cross-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-cross-table.R#L6) | ds\_cross\_table | output from ds\_cross\_table matches expected results | PASS | 21| 0.61| -| [test-cross-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-cross-table.R#L51) | ds\_cross\_table | ouput from plot.ds\_cross\_table matches expected output | SKIPPED | 1| 0.01| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L4) | describe | output from ds\_tailobs match expected result | PASS | 2| 0.06| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L10) | describe | ds\_tailobs returns the appropriate error | PASS | 5| 0.05| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L19) | describe | output from ds\_rindex match expected result | PASS | 4| 0.04| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L27) | describe | ds\_rindex returns the appropriate error | PASS | 3| 0.03| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L34) | describe | output from ds\_skewness matches expected result | PASS | 6| 0.07| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L44) | describe | ds\_skewness returns the appropriate error | PASS | 2| 0.02| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L50) | describe | output from ds\_kurtosis matches expected result | PASS | 6| 0.06| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L60) | describe | ds\_kurtosis returns the appropriate error | PASS | 2| 0.02| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L66) | describe | ds\_css matches `Sum Sq` from anova | PASS | 6| 0.23| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L76) | describe | ds\_css returns the appropriate error | PASS | 2| 0.01| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L82) | describe | output from ds\_cvar matches the expected result | PASS | 2| 0.02| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L88) | describe | ds\_cvar returns the appropriate error | PASS | 2| 0.05| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L94) | describe | output from ds\_mode matches the expected result | PASS | 6| 0.50| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L104) | describe | ds\_mode returns the appropriate error | PASS | 2| 0.01| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L110) | describe | output from ds\_range matches the expected result | PASS | 6| 0.11| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L120) | describe | ds\_range returns the appropriate error | PASS | 2| 0.02| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L126) | describe | output from ds\_mdev matches the expected result | PASS | 6| 0.04| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L136) | describe | output from ds\_mdev matches the expected result | PASS | 2| 0.02| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L141) | describe | ds\_mdev returns the appropriate error | PASS | 2| 0.02| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L147) | describe | output from ds\_hmean matches the expected output | PASS | 3| 0.01| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L153) | describe | ds\_hmean throws the appropriate error | PASS | 2| 0.02| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L159) | describe | output from ds\_gmean matches the expected output | PASS | 3| 0.06| -| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L166) | describe | ds\_gmean throws the appropriate error | PASS | 2| 0.01| -| [test-f-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-f-dist.R#L5) | f-dist | dist\_f\_plot returns appropriate error messages | PASS | 6| 0.05| -| [test-f-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-f-dist.R#L24) | f-dist | output from dist\_f\_perc matches the expected result | PASS | 2| 0.22| -| [test-f-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-f-dist.R#L32) | f-dist | dist\_f\_perc returns appropriate error messages | PASS | 8| 0.08| -| [test-f-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-f-dist.R#L60) | f-dist | output from dist\_f\_prob matches expected result | PASS | 2| 0.20| -| [test-freq-cont.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-freq-cont.R#L5) | ds\_freq\_cont | output from ds\_freq\_cont matches expected result | PASS | 8| 0.10| -| [test-freq-cont.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-freq-cont.R#L19) | ds\_freq\_cont | ds\_freq\_cont returns appropriate errors | PASS | 2| 0.01| -| [test-freq-cont.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-freq-cont.R#L24) | ds\_freq\_cont | output from ds\_freq\_cont plot is as expected | SKIPPED | 1| 0.00| -| [test-freq-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-freq-table.R#L5) | freq\_table | output from ds\_freq\_table matches expected results | PASS | 6| 0.09| -| [test-freq-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-freq-table.R#L14) | freq\_table | ds\_freq\_table returns appropriate errors | PASS | 1| 0.00| -| [test-freq-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-freq-table.R#L18) | freq\_table | output from ds\_freq\_table plot is as expected | SKIPPED | 1| 0.00| -| [test-group-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-group-summary.R#L14) | ds\_group\_summary | output from ds\_group\_summary matches the expected result | PASS | 6| 0.56| -| [test-group-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-group-summary.R#L40_L43) | ds\_group\_summary | ds\_group\_summary throws the appropriate error | PASS | 2| 0.02| -| [test-group-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-group-summary.R#L52) | ds\_group\_summary | output from ds\_group\_summary plot is as expected | SKIPPED | 1| 0.00| -| [test-multistats.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-multistats.R#L8) | multistats | output from multistats is as expected | PASS | 1| 0.28| -| [test-normal-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-normal-dist.R#L5) | normal-dist | output from dist\_norm\_perc matches expected output | PASS | 6| 0.83| -| [test-normal-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-normal-dist.R#L25) | normal-dist | dist\_norm\_perc throws the appropriate errors | PASS | 9| 0.08| -| [test-normal-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-normal-dist.R#L39) | normal-dist | output from dist\_norm\_prob matches expected output | PASS | 6| 0.90| -| [test-normal-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-normal-dist.R#L59) | normal-dist | dist\_norm\_prob throws the appropriate errors | PASS | 9| 0.11| -| [test-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-output.R#L41) | print | output from print\_cross matches expected output | PASS | 1| 0.21| -| [test-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-output.R#L70) | print | output from print\_screener matches expected output | PASS | 1| 0.11| -| [test-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-output.R#L91) | print | output from print\_fcont matches the expected result | PASS | 1| 0.17| -| [test-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-output.R#L109) | print | output from freq\_table matches the expected result | PASS | 1| 0.12| -| [test-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-output.R#L137) | print | output from group\_summary matches the expected result | PASS | 1| 0.51| -| [test-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-output.R#L210) | print | output from print\_ftable2 matches the expected result | PASS | 1| 0.41| -| [test-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-output.R#L300) | print | output from print\_cross2 matches the expected result | PASS | 1| 0.32| -| [test-screen.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-screen.R#L9) | ds\_screener | output from ds\_screener matches the expected result | PASS | 13| 0.12| -| [test-screen.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-screen.R#L48) | ds\_screener | ds\_screener throws the appropriate error | PASS | 1| 0.02| -| [test-t-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-t-dist.R#L5) | t-dist | output from dist\_t\_perc matches expected results | PASS | 6| 0.77| -| [test-t-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-t-dist.R#L25) | t-dist | dist\_t\_perc returns appropriate error messages | PASS | 6| 0.06| -| [test-t-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-t-dist.R#L46) | t-dist | output from dist\_t\_prob matches expected result | PASS | 8| 1.02| -| [test-t-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-t-dist.R#L75) | t-dist | dist\_t\_prob returns appropriate error messages | PASS | 4| 0.03| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L4) | utils | output from formatc matches the expected result | PASS | 2| 0.01| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L10) | utils | output from formatl matches the expected result | PASS | 2| 0.02| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L16) | utils | output from formatr matches the expected result | PASS | 1| 0.02| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L21) | utils | output from formats matches the expected result | PASS | 1| 0.00| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L26) | utils | output from formatnc matches the expected result | PASS | 1| 0.01| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L31) | utils | output from format\_gap matches the expected result | PASS | 1| 0.00| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L36) | utils | output from formatol matches the expected result | PASS | 2| 0.02| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L42) | utils | output from l matches the expected result | PASS | 3| 0.04| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L49) | utils | output from percent matches the expected result | PASS | 2| 0.02| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L55) | utils | output from formata matches the expected result | PASS | 1| 0.01| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L60) | utils | output from formatas matches the expected result | PASS | 1| 0.00| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L65) | utils | output from formatter\_freq matches the expected result | PASS | 1| 0.04| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L72) | utils | output from row\_pct matches the expected result | PASS | 1| 0.01| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L79) | utils | output from col\_pct matches the expected result | PASS | 1| 0.00| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L84) | utils | output from formatter matches the expected result | PASS | 1| 0.02| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L89) | utils | output from fround matches the expected result | PASS | 1| 0.00| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L94) | utils | output form xmm matches the expected result | PASS | 1| 0.01| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L98) | utils | output from seql matches the expected result | PASS | 1| 0.02| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L102) | utils | output form xmmp matches the expected result | PASS | 2| 0.02| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L107) | utils | output from seqlp matches the expected result | PASS | 2| 0.02| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L113) | utils | output form xmn matches the expected result | PASS | 1| 0.00| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L117) | utils | output from seqln matches the expected result | PASS | 1| 0.00| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L123) | utils | output from intervals matches expected result | PASS | 1| 0.01| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L128_L131) | utils | output from freq matches the expected result | PASS | 1| 0.02| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L135) | utils | output from stat\_uss matches the expected result | PASS | 1| 0.03| -| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L140) | utils | output from div\_by matches the expected result | PASS | 1| 0.00| +## Unit Tests + +Unit Test summary is created using the +[testthat](https://github.com/r-lib/testthat) +package. + +| | file | n | time | error | failed | skipped | warning | +| -------------------- | :---------------------------------------------------- | -: | ----: | ----: | -----: | ------: | ------: | +| test-auto-summary.R | [test-auto-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-auto-summary.R) | 14 | 13.33 | 0 | 0 | 0 | 0 | +| test-binom-dist.R | [test-binom-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-binom-dist.R) | 3 | 11.81 | 0 | 0 | 0 | 0 | +| test-chi-dist.R | [test-chi-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-chi-dist.R) | 3 | 8.64 | 0 | 0 | 0 | 0 | +| test-cross-table.R | [test-cross-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-cross-table.R) | 29 | 10.16 | 0 | 0 | 1 | 0 | +| test-describe.R | [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R) | 97 | 12.70 | 0 | 0 | 0 | 0 | +| test-f-dist.R | [test-f-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-f-dist.R) | 3 | 5.75 | 0 | 0 | 0 | 0 | +| test-freq-table.R | [test-freq-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-freq-table.R) | 16 | 0.41 | 0 | 0 | 2 | 0 | +| test-group-summary.R | [test-group-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-group-summary.R) | 9 | 2.67 | 0 | 0 | 1 | 0 | +| test-multistats.R | [test-multistats.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-multistats.R) | 1 | 0.33 | 0 | 0 | 0 | 0 | +| test-normal-dist.R | [test-normal-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-normal-dist.R) | 3 | 7.08 | 0 | 0 | 0 | 0 | +| test-output.R | [test-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-output.R) | 7 | 3.24 | 0 | 0 | 0 | 0 | +| test-plots.R | [test-plots.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-plots.R) | 21 | 31.72 | 0 | 0 | 0 | 0 | +| test-screen.R | [test-screen.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-screen.R) | 14 | 1.05 | 0 | 0 | 0 | 0 | +| test-summary-stats.R | [test-summary-stats.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-summary-stats.R) | 3 | 1.54 | 0 | 0 | 0 | 0 | +| test-t-dist.R | [test-t-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-t-dist.R) | 3 | 4.26 | 0 | 0 | 0 | 0 | +| test-utils.R | [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R) | 35 | 0.42 | 0 | 0 | 0 | 0 | + +
    + + Show Detailed Test Results + + +| file | context | test | status | n | time | +| :------------------------------------------------------------ | :----------------- | :--------------------------------------------------------- | :------ | -: | ---: | +| [test-auto-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-auto-summary.R#L7) | test-auto-summary | ds\_auto\_summary throws errors as expected | PASS | 2 | 2.18 | +| [test-auto-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-auto-summary.R#L12) | test-auto-summary | ds\_auto\_group\_summary throws errors as expected | PASS | 4 | 3.72 | +| [test-auto-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-auto-summary.R#L19) | test-auto-summary | ds\_auto\_freq\_table throws errors as expected | PASS | 2 | 1.85 | +| [test-auto-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-auto-summary.R#L24) | test-auto-summary | ds\_auto\_cross\_table throws errors as expected | PASS | 3 | 2.80 | +| [test-auto-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-auto-summary.R#L94) | test-auto-summary | output from ds\_auto\_summary is as expected | PASS | 1 | 1.42 | +| [test-auto-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-auto-summary.R#L124) | test-auto-summary | output from ds\_auto\_group\_summary is as expected | PASS | 1 | 1.00 | +| [test-auto-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-auto-summary.R#L168) | test-auto-summary | output from ds\_auto\_cross\_table is as expected | PASS | 1 | 0.36 | +| [test-binom-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-binom-dist.R#L4) | binom\_dist | dist\_binom\_plot throws the appropriate warning | PASS | 1 | 6.67 | +| [test-binom-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-binom-dist.R#L8) | binom\_dist | dist\_binom\_prob throws the appropriate warning | PASS | 1 | 3.06 | +| [test-binom-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-binom-dist.R#L12) | binom\_dist | dist\_binom\_perc throws the appropriate warning | PASS | 1 | 2.08 | +| [test-chi-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-chi-dist.R#L4) | chi-dist | dist\_chi\_plot throws the appropriate warning | PASS | 1 | 0.21 | +| [test-chi-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-chi-dist.R#L8) | chi-dist | dist\_chi\_prob throws the appropriate warning | PASS | 1 | 5.19 | +| [test-chi-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-chi-dist.R#L12) | chi-dist | dist\_chi\_perc throws the appropriate warning | PASS | 1 | 3.24 | +| [test-cross-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-cross-table.R#L6) | ds\_cross\_table | output from ds\_cross\_table matches expected results | PASS | 21 | 0.79 | +| [test-cross-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-cross-table.R#L51) | ds\_cross\_table | ouput from plot.ds\_cross\_table matches expected output | SKIPPED | 1 | 0.01 | +| [test-cross-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-cross-table.R#L72) | ds\_cross\_table | ds\_cross\_table throws appropriate error | PASS | 3 | 3.29 | +| [test-cross-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-cross-table.R#L81) | ds\_cross\_table | output from ds\_twoway\_table is as expected | PASS | 1 | 0.19 | +| [test-cross-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-cross-table.R#L87) | ds\_cross\_table | ds\_twoway\_table throws appropriate error | PASS | 3 | 5.88 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L4) | describe | output from ds\_tailobs match expected result | PASS | 2 | 0.16 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L10) | describe | ds\_tailobs returns the appropriate error | PASS | 5 | 0.09 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L19) | describe | output from ds\_rindex match expected result | PASS | 4 | 0.14 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L27) | describe | ds\_rindex returns the appropriate error | PASS | 3 | 0.09 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L34) | describe | output from ds\_skewness matches expected result | PASS | 6 | 0.11 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L44) | describe | ds\_skewness returns the appropriate error | PASS | 2 | 0.05 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L50) | describe | output from ds\_kurtosis matches expected result | PASS | 6 | 0.27 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L60) | describe | ds\_kurtosis returns the appropriate error | PASS | 2 | 0.04 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L66) | describe | ds\_css matches `Sum Sq` from anova | PASS | 6 | 0.63 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L76) | describe | ds\_css returns the appropriate error | PASS | 2 | 0.04 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L82) | describe | output from ds\_cvar matches the expected result | PASS | 2 | 0.08 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L88) | describe | ds\_cvar returns the appropriate error | PASS | 2 | 0.10 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L94) | describe | output from ds\_mode matches the expected result | PASS | 6 | 0.54 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L104) | describe | ds\_mode returns the appropriate error | PASS | 2 | 0.02 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L110) | describe | output from ds\_range matches the expected result | PASS | 6 | 0.11 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L120) | describe | ds\_range returns the appropriate error | PASS | 2 | 0.01 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L126) | describe | output from ds\_mdev matches the expected result | PASS | 6 | 0.13 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L136) | describe | output from ds\_mdev matches the expected result | PASS | 2 | 0.01 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L141) | describe | ds\_mdev returns the appropriate error | PASS | 2 | 0.02 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L147) | describe | output from ds\_hmean matches the expected output | PASS | 3 | 0.06 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L153) | describe | ds\_hmean throws the appropriate error | PASS | 2 | 0.01 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L159) | describe | output from ds\_gmean matches the expected output | PASS | 3 | 0.05 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L166) | describe | ds\_gmean throws the appropriate error | PASS | 2 | 0.02 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L174) | describe | output from ds\_measures\_location is as expected | PASS | 1 | 0.54 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L182) | describe | output from ds\_measures\_location is as expected | PASS | 1 | 0.27 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L189) | describe | ds\_measures\_location throws appropriate errors | PASS | 1 | 1.06 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L196) | describe | ds\_measures\_location throws appropriate errors | PASS | 1 | 1.28 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L204) | describe | output from ds\_measures\_variation is as expected | PASS | 1 | 0.11 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L212) | describe | output from ds\_measures\_variation is as expected | PASS | 1 | 0.06 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L219) | describe | ds\_measures\_variation throws appropriate errors | PASS | 1 | 0.97 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L226) | describe | ds\_measures\_variation throws appropriate errors | PASS | 1 | 0.82 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L234) | describe | output from ds\_measures\_symmetry is as expected | PASS | 1 | 0.04 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L242) | describe | output from ds\_measures\_symmetry is as expected | PASS | 1 | 0.03 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L249) | describe | ds\_measures\_symmetry throws appropriate errors | PASS | 1 | 0.80 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L256) | describe | ds\_measures\_symmetry throws appropriate errors | PASS | 1 | 0.72 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L264) | describe | output from ds\_percentiles is as expected | PASS | 1 | 0.11 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L272) | describe | output from ds\_percentiles is as expected | PASS | 1 | 0.08 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L279) | describe | ds\_percentiles throws appropriate errors | PASS | 1 | 0.75 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L286) | describe | ds\_percentiles throws appropriate errors | PASS | 1 | 0.82 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L294) | describe | output from ds\_extreme\_obs is as expected | PASS | 1 | 0.04 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L301) | describe | ds\_extreme\_obs throws appropriate errors | PASS | 1 | 0.76 | +| [test-describe.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-describe.R#L307) | describe | ds\_extreme\_obs throws appropriate errors | PASS | 1 | 0.66 | +| [test-f-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-f-dist.R#L5) | f-dist | dist\_f\_plot throws the appropriate warning | PASS | 1 | 1.85 | +| [test-f-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-f-dist.R#L9) | f-dist | dist\_f\_prob throws the appropriate warning | PASS | 1 | 2.23 | +| [test-f-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-f-dist.R#L13) | f-dist | dist\_f\_perc throws the appropriate warning | PASS | 1 | 1.67 | +| [test-freq-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-freq-table.R#L5) | freq\_table | output from ds\_freq\_table matches expected results | PASS | 6 | 0.27 | +| [test-freq-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-freq-table.R#L15) | freq\_table | output from ds\_freq\_table plot is as expected | SKIPPED | 1 | 0.00 | +| [test-freq-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-freq-table.R#L24) | freq\_table | output from ds\_freq\_cont matches expected result | PASS | 8 | 0.14 | +| [test-freq-table.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-freq-table.R#L35) | freq\_table | output from ds\_freq\_table plot is as expected | SKIPPED | 1 | 0.00 | +| [test-group-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-group-summary.R#L14) | ds\_group\_summary | output from ds\_group\_summary matches the expected result | PASS | 6 | 0.57 | +| [test-group-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-group-summary.R#L40_L43) | ds\_group\_summary | ds\_group\_summary throws the appropriate error | PASS | 2 | 2.10 | +| [test-group-summary.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-group-summary.R#L52) | ds\_group\_summary | output from ds\_group\_summary plot is as expected | SKIPPED | 1 | 0.00 | +| [test-multistats.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-multistats.R#L8) | multistats | output from multistats is as expected | PASS | 1 | 0.33 | +| [test-normal-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-normal-dist.R#L4) | normal-dist | dist\_norm\_plot throws the appropriate warning | PASS | 1 | 2.25 | +| [test-normal-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-normal-dist.R#L8) | normal-dist | dist\_norm\_prob throws the appropriate warning | PASS | 1 | 2.31 | +| [test-normal-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-normal-dist.R#L12) | normal-dist | dist\_norm\_perc throws the appropriate warning | PASS | 1 | 2.52 | +| [test-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-output.R#L41) | print | output from print\_cross matches expected output | PASS | 1 | 0.21 | +| [test-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-output.R#L70) | print | output from print\_screener matches expected output | PASS | 1 | 0.15 | +| [test-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-output.R#L91) | print | output from print\_fcont matches the expected result | PASS | 1 | 0.33 | +| [test-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-output.R#L109) | print | output from freq\_table matches the expected result | PASS | 1 | 0.19 | +| [test-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-output.R#L137) | print | output from group\_summary matches the expected result | PASS | 1 | 0.95 | +| [test-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-output.R#L210) | print | output from print\_ftable2 matches the expected result | PASS | 1 | 0.74 | +| [test-output.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-output.R#L300) | print | output from print\_cross2 matches the expected result | PASS | 1 | 0.67 | +| [test-plots.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-plots.R#L7) | test-plots | ds\_plot\_scatter throws errors as expected | PASS | 3 | 3.18 | +| [test-plots.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-plots.R#L13) | test-plots | ds\_plot\_histogram throws errors as expected | PASS | 2 | 2.04 | +| [test-plots.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-plots.R#L18) | test-plots | ds\_plot\_density throws errors as expected | PASS | 2 | 1.83 | +| [test-plots.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-plots.R#L23) | test-plots | ds\_plot\_bar throws errors as expected | PASS | 2 | 2.20 | +| [test-plots.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-plots.R#L28) | test-plots | ds\_plot\_box\_single throws errors as expected | PASS | 2 | 2.83 | +| [test-plots.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-plots.R#L33) | test-plots | ds\_plot\_bar\_stacked throws errors as expected | PASS | 3 | 6.53 | +| [test-plots.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-plots.R#L39) | test-plots | ds\_plot\_bar\_grouped throws errors as expected | PASS | 3 | 6.70 | +| [test-plots.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-plots.R#L45) | test-plots | ds\_plot\_box\_group throws errors as expected | PASS | 4 | 6.41 | +| [test-screen.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-screen.R#L9) | ds\_screener | output from ds\_screener matches the expected result | PASS | 13 | 0.27 | +| [test-screen.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-screen.R#L48) | ds\_screener | ds\_screener throws the appropriate error | PASS | 1 | 0.78 | +| [test-summary-stats.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-summary-stats.R#L7) | test-summary-stats | output from ds\_summary is as expected | PASS | 1 | 0.05 | +| [test-summary-stats.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-summary-stats.R#L13) | test-summary-stats | ds\_summary\_stats throws appropriate errors | PASS | 2 | 1.49 | +| [test-t-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-t-dist.R#L4) | t-dist | dist\_t\_plot throws the appropriate warning | PASS | 1 | 0.95 | +| [test-t-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-t-dist.R#L8) | t-dist | dist\_t\_prob throws the appropriate warning | PASS | 1 | 1.74 | +| [test-t-dist.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-t-dist.R#L12) | t-dist | dist\_t\_perc throws the appropriate warning | PASS | 1 | 1.57 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L4) | utils | output from formatc matches the expected result | PASS | 2 | 0.05 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L10) | utils | output from formatl matches the expected result | PASS | 2 | 0.06 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L16) | utils | output from formatr matches the expected result | PASS | 1 | 0.02 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L21) | utils | output from formats matches the expected result | PASS | 1 | 0.01 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L26) | utils | output from formatnc matches the expected result | PASS | 1 | 0.00 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L31) | utils | output from format\_gap matches the expected result | PASS | 1 | 0.00 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L36) | utils | output from formatol matches the expected result | PASS | 2 | 0.00 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L42) | utils | output from l matches the expected result | PASS | 3 | 0.04 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L49) | utils | output from percent matches the expected result | PASS | 2 | 0.00 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L55) | utils | output from formata matches the expected result | PASS | 1 | 0.04 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L60) | utils | output from formatas matches the expected result | PASS | 1 | 0.01 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L65) | utils | output from formatter\_freq matches the expected result | PASS | 1 | 0.00 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L72) | utils | output from row\_pct matches the expected result | PASS | 1 | 0.02 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L79) | utils | output from col\_pct matches the expected result | PASS | 1 | 0.00 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L84) | utils | output from formatter matches the expected result | PASS | 1 | 0.01 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L89) | utils | output from fround matches the expected result | PASS | 1 | 0.02 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L94) | utils | output form xmm matches the expected result | PASS | 1 | 0.00 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L98) | utils | output from seql matches the expected result | PASS | 1 | 0.01 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L102) | utils | output form xmmp matches the expected result | PASS | 2 | 0.02 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L107) | utils | output from seqlp matches the expected result | PASS | 2 | 0.02 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L113) | utils | output form xmn matches the expected result | PASS | 1 | 0.00 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L117) | utils | output from seqln matches the expected result | PASS | 1 | 0.01 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L123) | utils | output from intervals matches expected result | PASS | 1 | 0.02 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L128_L131) | utils | output from freq matches the expected result | PASS | 1 | 0.00 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L135) | utils | output from stat\_uss matches the expected result | PASS | 1 | 0.01 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L140) | utils | output from div\_by matches the expected result | PASS | 1 | 0.05 | +| [test-utils.R](https://github.com/rsquaredacademy/descriptr/tree/develop/tests/testthat/test-utils.R#L144) | utils | output from uss is as expected | PASS | 1 | 0.00 |
    -
    Session Info +
    + + Session Info | Field | Value | -|:---------|:---------------------------------| +| :------- | :------------------------------- | | Version | R version 3.5.1 (2018-07-02) | | Platform | x86\_64-w64-mingw32/x64 (64-bit) | -| Running | Windows >= 8 x64 (build 9200) | +| Running | Windows \>= 8 x64 (build 9200) | | Language | English\_India | | Timezone | Asia/Calcutta | | Package | Version | -|:---------|:--------| -| testthat | 2.0.0 | -| covr | 3.2.0 | +| :------- | :------ | +| testthat | 2.0.1 | +| covr | 3.2.1 | | covrpage | 0.0.59 |