LETGRADE              package:ProfessR              R Documentation

_L_e_t_t_e_r _G_r_a_d_e

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

     given a numeric grade return a letter grade

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

     LETGRADE(g)

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

       g: numeric grade between 1-100

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

     returns a grade based on a 4 point spread

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

     character vector of grades

_N_o_t_e:

     Failing grade is "E" by default. There is no "A+" in this program
     (UNC policy)

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

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

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

     g = rnorm(25, m=82, sd=10)
     g[g>100] = 100
     g[g<1] = 1

     L = LETGRADE(g)

     cbind(g, L)

