Show in interactive gt table a data.frame from df_info function
Arguments
- df
A data.frame object from df_info function
- df_name
A name for the data.frame. Will be used as tab_header in gt table
Examples
mtcars |> df_info() |> gt_info(df_name = 'mtcars')
mtcars |
Variable |
Type |
Class |
Size |
Min |
Max |
Valid |
Unique |
Zeros |
NA's |
---|
mpg |
double |
numeric |
304 B |
10.40 |
33.90 |
32.000 / 100.00% |
25.000 / 78.12% |
0.000 / 0.00% |
0.000 / 0.00% |
cyl |
double |
numeric |
304 B |
4.00 |
8.00 |
32.000 / 100.00% |
3.000 / 9.38% |
0.000 / 0.00% |
0.000 / 0.00% |
disp |
double |
numeric |
304 B |
71.10 |
472.00 |
32.000 / 100.00% |
27.000 / 84.38% |
0.000 / 0.00% |
0.000 / 0.00% |
hp |
double |
numeric |
304 B |
52.00 |
335.00 |
32.000 / 100.00% |
22.000 / 68.75% |
0.000 / 0.00% |
0.000 / 0.00% |
drat |
double |
numeric |
304 B |
2.76 |
4.93 |
32.000 / 100.00% |
22.000 / 68.75% |
0.000 / 0.00% |
0.000 / 0.00% |
wt |
double |
numeric |
304 B |
1.51 |
5.42 |
32.000 / 100.00% |
29.000 / 90.62% |
0.000 / 0.00% |
0.000 / 0.00% |
qsec |
double |
numeric |
304 B |
14.50 |
22.90 |
32.000 / 100.00% |
30.000 / 93.75% |
0.000 / 0.00% |
0.000 / 0.00% |
vs |
double |
numeric |
304 B |
0.00 |
1.00 |
32.000 / 100.00% |
2.000 / 6.25% |
18.000 / 56.25% |
0.000 / 0.00% |
am |
double |
numeric |
304 B |
0.00 |
1.00 |
32.000 / 100.00% |
2.000 / 6.25% |
19.000 / 59.38% |
0.000 / 0.00% |
gear |
double |
numeric |
304 B |
3.00 |
5.00 |
32.000 / 100.00% |
3.000 / 9.38% |
0.000 / 0.00% |
0.000 / 0.00% |
carb |
double |
numeric |
304 B |
1.00 |
8.00 |
32.000 / 100.00% |
6.000 / 18.75% |
0.000 / 0.00% |
0.000 / 0.00% |