writeperloption {pinktoe}R Documentation

Generate part of the perl file.

Description

If childvar is a leaf then call stateprintfn to issue perl code to call appropriate leaf functionality, alternatively issue perl code to call next HTML file in the tree.

Usage

writeperloption(childvar, childrow, childnodeid, treeobj, perlname, append = TRUE, htmldir, stateprintfn)

Arguments

childvar Variable name of next item in tree, either "<leaf>" or actual variable name
childrow The row number into frame for next item.
childnodeid The node number (row name of row number in frame component)
treeobj The rpart or tree object that all this is about
perlname The name of the perl file that all this is being written to
append Should be TRUE
htmldir The directory that the HTML files are getting written to (the perl file needs to know this to set up a call to HTML files
stateprintfn A user-supplied function that decides what to do when supplied with the yval reached at the leaf of a tree. Some text can be output, or maybe a perl function call.

Details

As description.

Value

No value returned.

Note

Not intended for general user use

Author(s)

Guy P Nason

References

http://www.stats.bris.ac.uk/~magpn/Research/Pinktoe/Welcome.html

See Also

pinktoe

Examples

#
#Not intended for general user use
#

[Package pinktoe version 2.0 Index]