Debian Codegraph @

vignettes/Skimr_defaults.Rmd

raw
1 ---
2 title: "Skimr defaults"
3 date: "`r Sys.Date()`"
4 output:
5 rmarkdown::html_vignette:
6 latex_engine: xelatex
7 vignette: >
8 %\VignetteIndexEntry{Skimr defaults}
9 %\VignetteEngine{knitr::rmarkdown}
10 %\VignetteEncoding{UTF-8}
11 ---
12
13 ## Introduction
14
15 This vignette simply displays the default data types and summary functions for
16 `skimr`. Customizing `skimr` is explained in the **Using Skimr** vignette.
17
18 ## The base skimmers
19
20 `skimr` has a group of functions that it applies to all data types. We call
21 these the "base"" skimmers:
22
23 * `n_missing`: The number of missing values in the column.
24 * `complete_rate`: The ratio of non-missing values to the total values in the
25 column.
26
27 ## Default skimmers
28
29 To learn more about the functions used in this package, use the function
30 `get_default_skimmer_names()`.
31
32 ```{r}
33 library(skimr)
34 get_default_skimmer_names()
35 ```
36
37 The counterpart to this function is `get_default_skimmers()`, which returns the
38 functions themselves. If you are interested in a particular class within
39 `skimr`, pass it as a string to either function.
40
41 ```{r}
42 get_default_skimmer_names("numeric")
43 ```
44
45 The same information is stored in the `skimmers_used` attribute of the object
46 returned by `skim()`.