partyprint {pinktoe} | R Documentation |
In response to a variable (from the var component of the frame component of the relevant
tree or rpart
object this function issues perl commands which call functions
in the partylib object (which can be supplied as a requirelib
object for pinktoe
partyprint(yval, file = "", append = FALSE)
yval |
One of "Lab", "Con", "LDem", "UU", "PC", "SNP": parties in the British Political system |
file |
perl file to write the output code to |
append |
Should be TRUE |
This file should produce perl code to do something when a yval is produced. A yval is one of the
elements of the var column in the frame dataframe of a tree or rpart object. In this case
the elements are all political parties indicated by the possibilities described in the yval
argument to this function. Here perl code is generated which calls a function, one for each political
party. See example below.
Nothing.
Guy P Nason
http://www.stats.bris.ac.uk/~magpn/Research/Pinktoe/Welcome.html
partyprint("Lab", file="", append=TRUE) # &labour; # # # So the perl function labour gets called.