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)

