person {utils} | R Documentation |
A class and utility methods for holding information about persons like name and email address.
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, ...)
first |
character string, first name |
middle |
character string, middle name(s) |
last |
character string, last name |
email |
character string, email address |
... |
for |
x |
a character string or an object of class |
object |
an object of class |
## 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)