-
Notifications
You must be signed in to change notification settings - Fork 486
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
the skim function doesn't give statistics #271
Comments
Hi @xiaoouwang. The summary statistics that we show appear in the lines following the last line that you have in your screenshot: library(moderndive)
library(tidyverse)
library(skimr) #v2.0.2
evals_ch5 <- evals %>%
select(ID, score, bty_avg, age)
evals_ch5 %>% select(score, bty_avg) %>% skim()
In the book, we are using a modified version of the output that v1.0.6 of {skimr} produces: library(moderndive)
library(tidyverse)
# remove.packages("skimr")
# Restart R
# remotes::install_version(package = "skimr", version = "1.0.6")
library(skimr) #v1.0.6
evals_ch5 <- evals %>%
select(ID, score, bty_avg, age)
evals_ch5 %>% select(score, bty_avg) %>% skim()
Hope that helps! |
Hi ismayc I found the solution here : it's due to some problem with the new tibble datatype. Maybe it would be helpful to mention it in the book. |
Can you confirm that you also see this when you use version 1.0.6? |
Oh i didn't test it on 1.0.6. I've installed with install.Package and it directly installs version 2.x. I think many people will install directly the most recent version too. |
Right, but one reason we use version 1.0.6 is problems with version 2.x and above. You can see the other versions of the packages we used at https://moderndive.com/E-appendixE.html. You can install the previous version via
|
@ismayc If there is an issue in skimr v2 can you let us know in our tracker? http://github.com/ropensci/skimr. |
Unfortunately the issues I brought up in ropensci/skimr#424 were never cleanly resolved for what we were after. We ended up needing to copy-and-paste the modified output in the book to be able to show some of the functionality. |
So is the issue about wrapping or about being able to specify a specific length? I also have issues about bookdown and I will try to look into it. |
A little of both. Feel free to play around with either the Chapter 5 or Chapter 6 files so you can see the output. |
Take a look at version 2.1, it may solve the issue. There are new parameters to the print function that allow control of the horizontal rule. |
Thanks for the heads up @elinw, we'll re-open this issue and take a look at v2.1 when we have a moment. |
I don't know if it's just me but when I run
the results show no statistics
The text was updated successfully, but these errors were encountered: