library(janitor)
data(Credit,package = "ISLR2")
credit=Credit %>% clean_names()
credit %>% slice_sample(n=12) %>% kbl() %>% kable_styling(font_size = 10)
income | limit | rating | cards | age | education | own | student | married | region | balance |
---|---|---|---|---|---|---|---|---|---|---|
51.532 | 5096 | 380 | 2 | 31 | 15 | No | No | Yes | South | 481 |
148.080 | 8157 | 599 | 2 | 83 | 13 | No | No | Yes | South | 454 |
14.312 | 5382 | 367 | 1 | 59 | 17 | No | Yes | No | West | 1380 |
14.956 | 4640 | 332 | 2 | 33 | 6 | No | No | No | West | 681 |
30.007 | 6481 | 462 | 2 | 69 | 9 | Yes | No | Yes | South | 1093 |
82.706 | 7506 | 536 | 2 | 64 | 13 | Yes | No | Yes | West | 905 |
21.551 | 5380 | 420 | 5 | 51 | 18 | No | No | Yes | West | 907 |
56.256 | 5521 | 406 | 2 | 72 | 16 | Yes | Yes | Yes | South | 1020 |
62.413 | 6457 | 455 | 2 | 71 | 11 | Yes | No | Yes | South | 762 |
23.283 | 5443 | 407 | 4 | 49 | 13 | No | No | Yes | East | 912 |
41.419 | 2120 | 184 | 4 | 24 | 11 | Yes | Yes | No | South | 156 |
41.192 | 3673 | 297 | 3 | 54 | 16 | Yes | No | Yes | South | 121 |