Consider this simple example
> tibble(value = c(1,2,3,4,5,5,6,7,8,9,10,11,12)) %>%
+ skim()
Skim summary statistics
n obs: 13
n variables: 1
-- Variable type:numeric -------------------------------------------------------
variable missing complete n mean sd p0 p25 p50 p75 p100 hist
value 0 13 13 6.38 3.48 1 4 6 9 12 ▅▂▇▂▂▅▂▅
I would simply add two columns top
and bottom
to the skimr output that show the top 3 and bottom 3 values, separated by a comma.
Something like
top bottom
12,11,10 1,2,3
How can I do that? Thanks!