[datatable-help] Hierarchical list to matrix

bedavdiz dgeraci57 at gmail.com
Tue Feb 27 15:19:11 CET 2018


Good afternoon,

I have a hierarchical list that I would like to convert to a 2 dimensions
table, I am sure there is easy way to do it but I can't find it :-(

<http://r.789695.n4.nabble.com/file/t386292/Capture.png> 

It is a list of accommation and prices :

*|-date$
  |-nb_of_nights
    |-room_type
    |-price
  |-nb_of_nights
    |-room_type
    |-price
...*
(always the same structure)

and I would need a table presented like this :

*dates | nb-of_nights | room_type | price*

Thank you for your help!

David




--
Sent from: http://r.789695.n4.nabble.com/datatable-help-f2315188.html


More information about the datatable-help mailing list