Updating info to add -ile option

This commit is contained in:
avimallu
2021-01-29 16:13:35 +05:30
committed by GitHub
parent ec2418c470
commit 3e63a11dfe

View File

@@ -58,9 +58,11 @@ bucket can be defined as the members that are in the top 90%ile of contributors,
of contributors, excluding the top 90%ile of contributors, and so on.
```
decile_dt(x, decreasing = TRUE)
decile_dt(x, ile = 10, decreasing = TRUE)
```
The decile function defaults to 10 groups, but can be changed to be any `n` groups i.e. quartlie or quintile.
## glean
A quick hack-y replacement for `dplyr::glimpse` for `data.table`, but enhanced to differentiate data types by color and read numeric and integer values in human friendly styles (i.e. 4,721,123 as 4.72M). The colours are meant for differentiation, but not identifcation i.e. serves as an analytical aid while reading very long tables. Currently uses a bit too many libraries (4 of them), which I'm not comfortable with - the aim is to reduce them all to 2 (i.e. `data.table` and `crayon`, both of which have no dependencies themselves). Stay tuned.