Debian Codegraph @

tests/testthat/_snaps/data-table.md

raw symbols SCIP
1 # skim of a simple data.table produces output as expected
2
3 Code
4 skimmed_DT_letters
5 Output
6 -- Data Summary ------------------------
7 Values
8 Name DT_letters
9 Number of rows 26
10 Number of columns 1
11 Key NULL
12 _______________________
13 Column type frequency:
14 character 1
15 ________________________
16 Group variables None
17
18 -- Variable type: character ---------------------------------------------------------------
19 skim_variable n_missing complete_rate min max empty n_unique whitespace
20 1 abc 0 1 1 1 0 26 0
21
22 # skim of data.table produces output as expected
23
24 Code
25 skim(DT_factors)
26 Output
27 -- Data Summary ------------------------
28 Values
29 Name DT_factors
30 Number of rows 26
31 Number of columns 3
32 Key NULL
33 _______________________
34 Column type frequency:
35 character 1
36 factor 1
37 numeric 1
38 ________________________
39 Group variables None
40
41 -- Variable type: character ---------------------------------------------------------------
42 skim_variable n_missing complete_rate min max empty n_unique whitespace
43 1 abc 0 1 1 1 0 26 0
44
45 -- Variable type: factor ------------------------------------------------------------------
46 skim_variable n_missing complete_rate ordered n_unique top_counts
47 1 grps 0 1 FALSE 2 AA: 18, BB: 8
48
49 -- Variable type: numeric -----------------------------------------------------------------
50 skim_variable n_missing complete_rate mean sd p0 p25 p50 p75 p100 hist
51 1 values 0 1 0.0121 0.937 -2.21 -0.335 -0.0306 0.742 1.36 ▂▂▃▇▆
52
53 ---
54
55 Code
56 skim(DT_factors)
57 Output
58 -- Data Summary ------------------------
59 Values
60 Name DT_factors
61 Number of rows 26
62 Number of columns 3
63 Key abc, grps
64 _______________________
65 Column type frequency:
66 character 1
67 factor 1
68 numeric 1
69 ________________________
70 Group variables None
71
72 -- Variable type: character ---------------------------------------------------------------
73 skim_variable n_missing complete_rate min max empty n_unique whitespace
74 1 abc 0 1 1 1 0 26 0
75
76 -- Variable type: factor ------------------------------------------------------------------
77 skim_variable n_missing complete_rate ordered n_unique top_counts
78 1 grps 0 1 FALSE 2 AA: 18, BB: 8
79
80 -- Variable type: numeric -----------------------------------------------------------------
81 skim_variable n_missing complete_rate mean sd p0 p25 p50 p75 p100 hist
82 1 values 0 1 0.0121 0.937 -2.21 -0.335 -0.0306 0.742 1.36 ▂▂▃▇▆
83
84 ---
85
86 Code
87 skim(DF_factors)
88 Output
89 -- Data Summary ------------------------
90 Values
91 Name DF_factors
92 Number of rows 26
93 Number of columns 3
94 _______________________
95 Column type frequency:
96 character 1
97 factor 1
98 numeric 1
99 ________________________
100 Group variables None
101
102 -- Variable type: character ---------------------------------------------------------------
103 skim_variable n_missing complete_rate min max empty n_unique whitespace
104 1 abc 0 1 1 1 0 26 0
105
106 -- Variable type: factor ------------------------------------------------------------------
107 skim_variable n_missing complete_rate ordered n_unique top_counts
108 1 grps 0 1 FALSE 2 AA: 18, BB: 8
109
110 -- Variable type: numeric -----------------------------------------------------------------
111 skim_variable n_missing complete_rate mean sd p0 p25 p50 p75 p100 hist
112 1 values 0 1 0.0121 0.937 -2.21 -0.335 -0.0306 0.742 1.36 ▂▂▃▇▆
113
114 ---
115
116 Code
117 skim(tibble_factors)
118 Output
119 -- Data Summary ------------------------
120 Values
121 Name tibble_factors
122 Number of rows 26
123 Number of columns 3
124 _______________________
125 Column type frequency:
126 character 1
127 factor 1
128 numeric 1
129 ________________________
130 Group variables None
131
132 -- Variable type: character ---------------------------------------------------------------
133 skim_variable n_missing complete_rate min max empty n_unique whitespace
134 1 abc 0 1 1 1 0 26 0
135
136 -- Variable type: factor ------------------------------------------------------------------
137 skim_variable n_missing complete_rate ordered n_unique top_counts
138 1 grps 0 1 FALSE 2 AA: 18, BB: 8
139
140 -- Variable type: numeric -----------------------------------------------------------------
141 skim_variable n_missing complete_rate mean sd p0 p25 p50 p75 p100 hist
142 1 values 0 1 0.0121 0.937 -2.21 -0.335 -0.0306 0.742 1.36 ▂▂▃▇▆
143