Questions tagged [skimr]

For questions about the R package for flexible creation of summary statistics.

skimr provides a frictionless approach to summary statistics which conforms to the principle of least surprise, displaying summary statistics the user can skim quickly to understand their data. It handles different data types and returns a skim_df object which can be included in a pipeline or displayed nicely for the human reader

https://github.com/ropensci/skimr

23 questions
0
votes
1 answer

Calculate percentages in skimr::skim_with

I am trying to add percentages of levels of factor to skimr::skim output. I tried to use the table function but it did not work as intended. I can I get the percentages of the different species in the correct format, similar to…
Claudio
  • 1,229
  • 6
  • 11
0
votes
0 answers

Display column with histograms from skimr when using xtable()

Could I also display the column with the histograms when creating the xtable from SK<-data.frame(skimr::skim(iris[,1:4])) to htmlTable::htmlTable(xtable(SK, result="html"))
firmo23
  • 7,490
  • 2
  • 38
  • 114
0
votes
1 answer

Using skimr to create a data frame of summary statistics

I have recently come across the package called skimr which helps create useful summary statistics. I have written the following codes to extract summary stats only on numerical columns. My first question is, is there a more direct way that skimr…
Anup
  • 239
  • 2
  • 11
0
votes
2 answers

skimr(iris) generates error in check_dots_used when printing in linux RStudio console

When I run the default skimr command in the console on a linux RStudio server I get the following partial output and error: library(skimr) skim(iris) ── Data Summary ──────────────────────── Values Name iris Number of rows …
0
votes
2 answers

Is it possible to order (dplyr arrange?) a skim_df object by mean?

I am using the package skimr to summarize data that are all logicals, so naturally I would like to order the result by the mean from largest to smallest. I have already attempted to pipe the skim function to arrange for dplyr but that didn't…
Jonathan Rauscher
  • 147
  • 1
  • 1
  • 15
0
votes
1 answer

changing the number of decimal places in `skimr` output for numeric variables

I am using skimr::skim_to_wide function to look at the summary of my data. But I can't seem to figure out how to change the number of decimal places in the summary output for numeric variables. For example, here the mean is always "3.22", but I'd…
Indrajeet Patil
  • 4,673
  • 2
  • 20
  • 51
0
votes
0 answers

Unable to reproduce output from skimr vignette

The skimr vignette shows the following example: library(skimr) skim(iris) ## Skim summary statistics ## n obs: 150 ## n variables: 5 ## ## ── Variable type:factor ───────────────────────────────────── ## variable missing complete n…
Rez99
  • 359
  • 1
  • 4
  • 15
0
votes
1 answer

skimr: How to get variables printed in the original order?

By default, the print method for object created with function skim() (in R package skimr) sorts variables alphabetically. How can I get this method to print the variables in the order they appeared in the summarized dataset? # Default (desired)…
GegznaV
  • 4,938
  • 4
  • 23
  • 43
1
2