Skip to content

Commit 1f464e7

Browse files
committed
Deploying to gh-pages from @ 84e0b34 🚀
1 parent 7986320 commit 1f464e7

File tree

11 files changed

+86
-138
lines changed

11 files changed

+86
-138
lines changed

index.html

Lines changed: 25 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.md

Lines changed: 24 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ mtcars |> tab(cyl)
2121
#> cyl │ Freq. Percent Cum.
2222
#> ────────────┼───────────────────────────────────
2323
#> 4 │ 11 34.4 34.4
24-
#> 6 │ 7 21.9 56.3
24+
#> 6 │ 7 21.9 56.2
2525
#> 8 │ 14 43.8 100.0
2626
#> ────────────┼───────────────────────────────────
2727
#> Total │ 32 100.0  
@@ -42,17 +42,17 @@ mtcars |> tab(cyl, gear, am)
4242
#> cyl │ gear am Freq. Percent Cum.
4343
#> ────────────┼───────────────────────────────────────────────────────────
4444
#> 4 │ 3 0 1 3.1 3.1
45-
#> 4 │ 4 0 2 6.2 9.3
45+
#> 4 │ 4 0 2 6.2 9.4
4646
#> 4 │ 4 1 6 18.8 28.1
47-
#> 4 │ 5 1 2 6.2 34.3
47+
#> 4 │ 5 1 2 6.2 34.4
4848
#> ------------┼-----------------------------------------------------------
49-
#> 6 │ 3 0 2 6.2 40.5
50-
#> 6 │ 4 0 2 6.2 46.7
51-
#> 6 │ 4 1 2 6.2 52.9
52-
#> 6 │ 5 1 1 3.1 56.0
49+
#> 6 │ 3 0 2 6.2 40.6
50+
#> 6 │ 4 0 2 6.2 46.9
51+
#> 6 │ 4 1 2 6.2 53.1
52+
#> 6 │ 5 1 1 3.1 56.2
5353
#> ------------┼-----------------------------------------------------------
54-
#> 8 │ 3 0 12 37.5 93.5
55-
#> 8 │ 5 1 2 6.2 99.7
54+
#> 8 │ 3 0 12 37.5 93.8
55+
#> 8 │ 5 1 2 6.2 100.0
5656

5757
# tables wider than the R console are automatically wrapped
5858
mtcars |> tab(cyl, gear, am, vs)
@@ -75,18 +75,18 @@ mtcars |> tab(cyl, gear, am, vs)
7575
#> cyl │ Cum.
7676
#> ────────────┼────────────
7777
#> 4 │ 3.1
78-
#> 4 │ 9.3
78+
#> 4 │ 9.4
7979
#> 4 │ 28.1
8080
#> 4 │ 31.2
81-
#> 4 │ 34.3
81+
#> 4 │ 34.4
8282
#> ------------┼------------
83-
#> 6 │ 40.5
84-
#> 6 │ 46.7
85-
#> 6 │ 52.9
86-
#> 6 │ 56.0
83+
#> 6 │ 40.6
84+
#> 6 │ 46.9
85+
#> 6 │ 53.1
86+
#> 6 │ 56.2
8787
#> ------------┼------------
88-
#> 8 │ 93.5
89-
#> 8 │ 99.7
88+
#> 8 │ 93.8
89+
#> 8 │ 100.0
9090

9191
# missing values are displayed in red
9292
tab(letters[24:27])
@@ -105,21 +105,21 @@ mtcars |> ftab(cyl, gear)
105105
#> ────────────┼───────────────────────────────────────────────
106106
#> 4 │ 3 1 3.1 3.1
107107
#> 4 │ 4 8 25.0 28.1
108-
#> 4 │ 5 2 6.2 34.3
108+
#> 4 │ 5 2 6.2 34.4
109109
#> ------------┼-----------------------------------------------
110-
#> 6 │ 3 2 6.2 40.5
111-
#> 6 │ 4 4 12.5 53.0
112-
#> 6 │ 5 1 3.1 56.1
110+
#> 6 │ 3 2 6.2 40.6
111+
#> 6 │ 4 4 12.5 53.1
112+
#> 6 │ 5 1 3.1 56.2
113113
#> ------------┼-----------------------------------------------
114-
#> 8 │ 3 12 37.5 93.6
115-
#> 8 │ 5 2 6.2 99.8
114+
#> 8 │ 3 12 37.5 93.8
115+
#> 8 │ 5 2 6.2 100.0
116116

117117
# tab1() displays one-way tables for each variable
118118
mtcars |> tab1(cyl, gear)
119119
#> cyl │ Freq. Percent Cum.
120120
#> ────────────┼───────────────────────────────────
121121
#> 4 │ 11 34.4 34.4
122-
#> 6 │ 7 21.9 56.3
122+
#> 6 │ 7 21.9 56.2
123123
#> 8 │ 14 43.8 100.0
124124
#> ────────────┼───────────────────────────────────
125125
#> Total │ 32 100.0  
@@ -160,16 +160,6 @@ mtcars |> tab2(cyl, gear, am)
160160
#> 5 │ 0 5 │ 5
161161
#> ───────────┼──────────────────────┼──────────
162162
#> Total │ 19 13 │ 32
163-
164-
# ta() is a shortened alias for tab(), inspired by Stata
165-
mtcars |> ta(gear)
166-
#> gear │ Freq. Percent Cum.
167-
#> ────────────┼───────────────────────────────────
168-
#> 3 │ 15 46.9 46.9
169-
#> 4 │ 12 37.5 84.4
170-
#> 5 │ 5 15.6 100.0
171-
#> ────────────┼───────────────────────────────────
172-
#> Total │ 32 100.0  
173163
```
174164

175165
## Code of Conduct

0 commit comments

Comments
 (0)