Function tranform integer columns in factor by threshold.
1 | ds_IntToFactor(dt, threshold = 10, inline = T, exclude = c())
|
dt |
A data.table for modify. |
threshold |
A integer, default 10. Number unique value in column for transform. |
inline |
A boolean, default TRUE. Modify current data.table or return new data.table. |
exclude |
A character vector for exclude columns. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.