Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ds_summary_stats does not show missing values #30

Closed
aravindhebbali opened this issue Mar 8, 2018 · 0 comments
Closed

ds_summary_stats does not show missing values #30

aravindhebbali opened this issue Mar 8, 2018 · 0 comments
Assignees
Labels
bug
Projects

Comments

@aravindhebbali
Copy link
Member

@aravindhebbali aravindhebbali commented Mar 8, 2018

In the presence of missing values, ds_summary_stats() does not show the correct number of observations and corresponding missing values.

library(descriptr)
mt <- mtcarz
mt[2, 1] <- NA
ds_summary_stats(mt, mpg)
#>                         Univariate Analysis                          
#> 
#>  N                       31.00      Variance                37.51 
#>  Missing                  0.00      Std Deviation            6.12 
#>  Mean                    20.06      Range                   23.50 
#>  Median                  19.20      Interquartile Range      7.45 
#>  Mode                    10.40      Uncorrected SS       13601.31 
#>  Trimmed Mean            19.92      Corrected SS          1125.19 
#>  Skewness                 0.68      Coeff Variation         30.53 
#>  Kurtosis                -0.10      Std Error Mean           1.10 
#> 
#>                               Quantiles                               
#> 
#>               Quantile                            Value                
#> 
#>              Max                                  33.90                
#>              99%                                  33.45                
#>              95%                                  31.40                
#>              90%                                  30.40                
#>              Q3                                   22.80                
#>              Median                               19.20                
#>              Q1                                   15.35                
#>              10%                                  14.30                
#>              5%                                   11.85                
#>              1%                                   10.40                
#>              Min                                  10.40                
#> 
#>                             Extreme Values                            
#> 
#>                 Low                                High                
#> 
#>   Obs                        Value       Obs                        Value 
#>   14                         10.4        19                         33.9  
#>   15                         10.4        17                         32.4  
#>   23                         13.3        18                         30.4  
#>    6                         14.3        27                         30.4  
#>   16                         14.7        25                         27.3
@aravindhebbali aravindhebbali added the bug label Mar 8, 2018
@aravindhebbali aravindhebbali added this to the 0.4.1 milestone Mar 8, 2018
@aravindhebbali aravindhebbali self-assigned this Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
0.4.1
  
Awaiting triage
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.