无法重现撇脂小插图的输出

时间:2019-02-05 19:31:05

标签: r jupyter-notebook skimr

skimr vignette显示以下示例:

library(skimr)
skim(iris)

## Skim summary statistics
##  n obs: 150 
##  n variables: 5 
## 
## ── Variable type:factor ─────────────────────────────────────
##  variable missing complete   n n_unique                       top_counts
##   Species       0      150 150        3 set: 50, ver: 50, vir: 50, NA: 0
##  ordered
##    FALSE
## 
## ── Variable type:numeric ────────────────────────────────────
##      variable missing complete   n mean   sd  p0 p25  p50 p75 p100
##  Petal.Length       0      150 150 3.76 1.77 1   1.6 4.35 5.1  6.9
##   Petal.Width       0      150 150 1.2  0.76 0.1 0.3 1.3  1.8  2.5
##  Sepal.Length       0      150 150 5.84 0.83 4.3 5.1 5.8  6.4  7.9
##   Sepal.Width       0      150 150 3.06 0.44 2   2.8 3    3.3  4.4
##      hist
##  ▇▁▁▂▅▅▃▁
##  ▇▁▁▅▃▃▂▂
##  ▂▇▅▇▆▅▂▂
##  ▁▂▅▇▃▂▁▁

但是,当我在 Jupyter笔记本 中运行以上代码时,我得到:

## variable type    stat    level   value   formatted
## Sepal.Length numeric missing .all    0.0000000000    0
## Sepal.Length numeric complete    .all    150.0000000000  150
## Sepal.Length numeric n   .all    150.0000000000  150
## Sepal.Length numeric mean    .all    5.8433333333    5.84
## Sepal.Length numeric sd  .all    0.8280661280    0.83
## Sepal.Length numeric p0  .all    4.3000000000    4.3
## Sepal.Length numeric p25 .all    5.1000000000    5.1
## Sepal.Length numeric p50 .all    5.8000000000    5.8
## Sepal.Length numeric p75 .all    6.4000000000    6.4
## Sepal.Length numeric p100    .all    7.9000000000    7.9
## Sepal.Length numeric hist    .all    NA  ▂▇▅▇▆▅▂▂
## Sepal.Width  numeric missing .all    0.0000000000    0
## more rows...

如何获得小插图中所述的输出?

0 个答案:

没有答案