person                 package:utils                 R Documentation

_P_e_r_s_o_n _N_a_m_e_s _a_n_d _C_o_n_t_a_c_t _I_n_f_o_r_m_a_t_i_o_n

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

     A class and utility methods for holding information about persons
     like name and email address.

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

     person(first = "", last = "", middle = "", email = "")
     personList(...)
     as.person(x)
     as.personList(x)

     ## S3 method for class 'person':
     as.character(x, ...)
     ## S3 method for class 'personList':
     as.character(x, ...)

     ## S3 method for class 'person':
     toBibtex(object, ...)
     ## S3 method for class 'personList':
     toBibtex(object, ...)

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

   first: character string, first name

  middle: character string, middle name(s)

    last: character string, last name

   email: character string, email address

     ...: for 'personList' an arbitrary number of 'person' objects

       x: a character string or an object of class 'person' or
          'personList'

  object: an object of class 'person' or 'personList'

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

     ## create a person object directly
     p1 <- person("Karl", "Pearson", email = "pearson@stats.heaven")
     p1

     ## convert a string
     p2 <- as.person("Ronald Aylmer Fisher")
     p2

     ## create one object holding both
     p <- personList(p1, p2)
     ps <- as.character(p)
     ps
     as.personList(ps)

     ## convert to BibTeX author field
     toBibtex(p)

