26 questions
0
votes
1
answer
81
views
What does the n_unique value mean, when skimming list variables?
I do not understand the meaning of the n_unique value in skim about list variables:
library(tidyverse)
library(skimr)
skim(starwars)
The following is part of the result, about the three list ...
2
votes
0
answers
146
views
skim(iris) giving an error message using Google Colab
Running 4.3.2 on Google Colab.
When I do skim(iris) or any data set for that matter I get the usual output and then an error on the bottom:
── Variable type: numeric ───────────────────────────────────...
0
votes
1
answer
87
views
Control decimal output to csv from skimr output
I can control the decimals in the output of skimr in this way:
library(skimr)
options(pillar.sigfig = 2)
skim(faithful)
but I need to be able to output the results to a csv file. Doing this, the ...
0
votes
0
answers
46
views
Cannot delete histograms from skimr output
By my reading of the R package skimr vignette, this should produce output without inline histograms. What am I doing wrong? Error message is attached.
my_skim <- skim_with(numeric = sfl(hist=NULL))
...
3
votes
0
answers
455
views
How do I change the Body Width of the content box of a slide in Quarto
This is driving me crazy. It's just a basic example. This is the Quarto code.
```{r}
#| echo: true
library(tidyverse)
library(skimr)
```
```{r}
#| echo: true
skim(diamonds)
```
The output I get is:
...
0
votes
1
answer
693
views
Skimr error message when I try to do skim() with the data exported from REDCap
I would like to use the skimr package and skim() function to explore my data exported from REDCap, but it gives me this error message.
Error in `dplyr::summarize()`:
! Problem while computing `skimmed ...
1
vote
2
answers
1k
views
How to export skimr::skim() results to a file with variable type reset on many data frames?
I have 2 data frames(more in real life). My goal is to generate summary reports with skimr package then export them as a file to a folder. They would also have different file names.
The problem that ...
0
votes
0
answers
169
views
How to allow skimr::skim_with function to output stats for date variable?
I have a date variable in my data frame, but skim(df) will output the date variable as character variable. How do I specify in the code that it needs to recognize the date, and output range of the ...
4
votes
1
answer
2k
views
skimr: How to customize Data Summary in skim() output?
I want to use the function skim from R package skimr to produce summary statistics of multiple datasets. To save space, I need to prioritize information that gets displayed. I would like to remove ...
1
vote
1
answer
439
views
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 ...
0
votes
0
answers
130
views
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"))
2
votes
1
answer
476
views
Adjusting spark graphs/histograms in skimr package using R
I am working on a report that will display the results of some Likert scale data. I want to use the skim() function from the skimr package to utilize the spark graphs/histogram visual. The issue is ...
1
vote
1
answer
280
views
Create an indicator variable in one data frame based on values in another data frame
Say, I have a dataset called iris. I want to create an indicator variable called sepal_length_group in this dataset. The values of this indicator will be p25, p50, p75, and p100. For example, I want ...
0
votes
1
answer
930
views
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 ...
0
votes
2
answers
449
views
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
...