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

Missing values in report #463

Open
DariuszMajerek opened this issue Oct 21, 2024 · 2 comments
Open

Missing values in report #463

DariuszMajerek opened this issue Oct 21, 2024 · 2 comments
Labels
bug 🐛 Something isn't working

Comments

@DariuszMajerek
Copy link

Describe the bug
When data consists missing values (NA) mean is calculated properly (omit NAs), but median not

To Reproduce
Let's define some vector of numbers and run report() function on it.

x <- c(10, 21, 199, 21, 11, NA, 190)
report(x)

Expected behaviour
Calculated all statistics and information on missing percentage, but I've got

x: n = 7, Mean = 75.33, SD = 92.47, Median = , MAD = 15.57, range: [10, 199], Skewness = 0.96, Kurtosis = -1.85, 1 missing

Similar situation is for report_table().

Specifications:

  • Package Version report 0.5.9
@DariuszMajerek
Copy link
Author

Is anybody here who can help me with the issue.

@strengejacke strengejacke added the bug 🐛 Something isn't working label Oct 30, 2024
@strengejacke
Copy link
Member

We'll look into this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants