README.md

TT

Extension of datatable widget, allowing display of data.tree objects. All arguments of the data.tree become columns and each node is a row. Adds column with buttons allowing folding and unfolding the levels.

example

Package consist of treetable function that convert data.tree object to dataframe and JS function called after creating the table that is responsible for some formatting and folding/unfolding level rows.

Color formatting is done by kolorWheel JS script done by Zalka Erno (thank you)

e-mail: ern0@linkbroker.hu

http://linkbroker.hu/stuff/kolorwheel.js/

https://github.com/ern0/kolorwheel.js

Installation

You can install the released version of TT from CRAN with:

install.packages("TT")

or directly from github:

devtools::install_github(zielaskowski/tree-table)

Example

This is a basic example:

library(TT)
## basic example code
data("org")
data("col_order")
colnames <- factor(c("org",org$attributesAll),
                    levels =  col_order)
treetable(org, color="#FFFFFF", colnames=colnames)

For more examples see html file in /dev folder



zielaskowski/tree-table documentation built on Sept. 28, 2024, 8:42 a.m.