IDandEM               package:ProfessR               R Documentation

_M_a_t_c_h _I_D _a_n_d _E_m_a_i_l _f_i_l_e

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

     Match ID and Email file

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

     IDandEM(scrfn, sisroster, sel = 1:2, hnote = "Exam Results", SEND = TRUE)

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

   scrfn: list(ID=number, nam="name on scantron") 

sisroster: list(ID=number,  lastname='last name of student', 
          fullname='full name of student') 

     sel: numeric, index= specify for a specific student

   hnote: text, subject line on E-mail 

    SEND: logical, if FALSE, do not send 

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

     A set of files has been separated and stored.  Each file is to
     sent to a different student with the exam results.

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

     Side Effects

_N_o_t_e:

     The IDs of the reference data base (the roster) must match the IDs
     in the list of files.  If not, use repair.id to fix the scantron
     IDs

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

     Jonathan M. Lees<jonathan.lees@unc.edu>

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

     repair.id

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

     ## Not run: 
     ##  read in the names of the files
     zfile = scan(file="ALLIDS", list(name="", ID=0, tfile=""), sep="," )
     ##  read in a roster.  The roster has
     ##   email addresses that are attached tot he files
     ##  by matching the ID in the zfile with the IDs in the data base
     load(file="/home/lees/Class/GEOL_105/Grades_2008/EXAM1/BB1.RDATA")

     jroster = BB1

     IDandEM(zfile, jroster, sel=1:10, hnote="GEOL105 EXAM3 Results", SEND=FALSE )
     IDandEM(zfile, jroster,  hnote="GEOL105 EXAM3 Results", SEND=FALSE )

     ######## actual sending
     IDandEM(zfile, jroster, hnote="GEOL105 EXAM3 Results", SEND=TRUE )


     ## End(Not run)

