partyprint              package:pinktoe              R Documentation

_F_u_n_c_t_i_o_n _s_u_i_t_a_b_l_e _f_o_r _u_s_e _a_s _t_h_e _s_t_a_t_e_p_r_i_n_t_f_n _a_r_g_u_m_e_n_t _f_o_r _p_i_n_k_t_o_e _f_o_r _t_h_e _E_D_M _e_x_a_m_p_l_e

_D_e_s_c_r_i_p_t_i_o_n:

     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'

_U_s_a_g_e:

     partyprint(yval, file = "", append = FALSE)

_A_r_g_u_m_e_n_t_s:

    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

_D_e_t_a_i_l_s:

     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.

_V_a_l_u_e:

     Nothing.

_A_u_t_h_o_r(_s):

     Guy P Nason

_R_e_f_e_r_e_n_c_e_s:

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

_S_e_e _A_l_s_o:

     'pinktoe'

_E_x_a_m_p_l_e_s:

     partyprint("Lab", file="", append=TRUE)
     # &labour;
     #
     #
     # So the perl function labour gets called.

