I am trying to add a confidence interval to the output produced by skimr
library(skimr); library(Rmisc)
skim_with(numeric = list(CI = Rmisc::CI), append = FALSE)
skim(mtcars)
Skim summary statistics
n obs: 32
n variables: 11
── Variable type:numeric ──────────────────────────────────────────────────────────────────────────────────────────────────────────
variable CI
am upp: 0.59, mea: 0
carb upp: 3.39, mea: 2
cyl upp: 6.83, mea: 6
disp upp: 275.41, mea: 230
drat upp: 3.79, mea: 3
gear upp: 3.95, mea: 3
hp upp: 171.41, mea: 146
mpg upp: 22.26, mea: 20
qsec upp: 18.49, mea: 17
vs upp: 0.62, mea: 0
wt upp: 3.57, mea: 3
This hasn't quite worked as the lower bound of the confidence interval is missing. How can I get the lower and upper bounds of the confidence interval to work with skimr
?