Description Usage Arguments Value References Examples
Converts data from the tabular etree dataframe to a recursive json tree structure suitable for passing to D3 objects.
1 | etree2json(DF, data.col=c(3), dir="", write_file=FALSE )
|
DF |
An EventTree dataframe object. |
data.col |
A vector of column numbers from the EvenTree dataframe to be passed as json data. |
dir |
A character string for an absolute directory in which R can read and write. |
write_file |
A logical controlling whether to perform the write operation. |
Returns a character vector with escaped quote characters, suitable for writing to disk. Optionally, this vector will be written to a file taking the name of the object passed in as DF and appending '.json'.
Nicholls, David [Editor] (2005) System Reliability Toolkit Reliability information Analysis Center
O'Connor, Patrick D.T. (1991) Practical Reliability Engineering John Wiley & Sons
1 2 | mytree <- etree.make(name="conveyor belt fire")
etree2json(mytree)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.