david-cortes / outliertree

(Python, R, C++) Explainable outlier/anomaly detection through decision tree conditioning
http://outliertree.readthedocs.io
GNU General Public License v3.0
56 stars 4 forks source link

The output format is a nightmare #2

Closed cosmin-novac closed 3 years ago

cosmin-novac commented 3 years ago

Why is the output a list of lists with nested lists? Why not just a multi-col dataframe, with 1 row per observation? Is there a simple way to transform it that way?

david-cortes commented 3 years ago

Because that's not supported in R's data.frame. You'd have to use tibble or data.table to have such a thing.

cosmin-novac commented 3 years ago

I'd happily have data.table or tibble instead

Am Fr., 11. Dez. 2020 um 20:11 Uhr schrieb david-cortes < notifications@github.com>:

Because that's not supported in R's data.frame. You'd have to use tibble or data.table to have such a thing.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/david-cortes/outliertree/issues/2#issuecomment-743372697, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASPW3BDTBMZ5J6XVOAJRZ3SUJVFFANCNFSM4UXDCKQQ .

david-cortes commented 3 years ago

To transform it:

t(data.table::as.data.table(outliers))