ftree2html: Fault Tree Rendered in HTML

View source: R/ftree2html.R

ftree2htmlR Documentation

Fault Tree Rendered in HTML

Description

Prepares a web page from an ftree dataframe for a visualization of the data.

Usage

ftree2html(DF,dir="", write_file=TRUE)

Arguments

DF

A fault tree dataframe object.

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.

Value

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 '.html'.

References

Nicholls, David [Editor] (2005) System Reliability Toolkit Reliability information Analysis Center

O'Connor, Patrick D.T. (1991) Practical Reliability Engineering John Wiley & Sons

Examples

mytree <- ftree.make(type="or", name="site power loss")
ftree2html(mytree, write_file=FALSE)

FaultTree documentation built on June 8, 2023, 6:53 a.m.