Description Usage Arguments Value Author(s) References Examples
A function to obtain contact information for data contributors from the Neotoma Paleoecological Database.
1 2 | get_contacts(contactid, contactname, contactstatus,
familyname)
|
contactid |
Contact ID is a numerical value associated with the Neotoma Contact table's numerical Contact ID. |
contactname |
A character string indicating the data contributors' project, organization or personal name. May be a partial string and can include wildcards. |
contactstatus |
The current status of the contact. Possible values include: active, deceased, defunct, extant, inactive, retired, unknown. |
familyname |
A character string. Full or partial string indicating the contact's last name. |
The function takes parameters defined by the user and returns a list of contact information supplied by the Neotoma Paleoecological Database. The user may define all or none of the possible fields. The function contains data chacks for each defined parameter.
The function returns either a single item of class "try-error" describing the reason for failure (either mis-defined parameters or an error from the Neotoma API), or a table of contacts, with rows corresponding to the number of individual contacts returned by the Neotoma API. Each row entry includes the following parameters:
ContactID Unique database record identifier for the contact.
AliasID The ContactID of a person's current name. If the AliasID is different from the ContactID, the ContactID refers to the person's former name.
ContactName Full name of the person, last name first (e.g. "Simpson, George Gaylord") or name of organization or project (e.g. "Great Plains Flora Association").
ContactStatus Current status of the person, organization, or project. Field links to the ContactStatuses lookup table.
FamilyName Family or surname name of a person.
LeadingInitials Leading initials for given or forenames without spaces (e.g. "G.G.").
GivenNames Given or forenames of a person (e.g. "George Gaylord"). Initials with spaces are used if full given names are not known (e.g. "G. G").
Suffix Suffix of a person's name (e.g. "Jr.", "III").
Title A person's title (e.g. "Dr.", "Prof.", "Prof. Dr").
Phone Telephone number.
Fax Fax number.
Email Email address.
URL Universal Resource Locator, an Internet World Wide Web address.
Address Full mailing address.
Notes Free form notes or comments about the person, organization, or project.
Simon J. Goring simon.j.goring@gmail.com
Neotoma Project Website: http://www.neotomadb.org API Reference: http://api.neotomadb.org/doc/resources/contacts
1 2 3 4 5 6 7 8 | ## Not run:
# To find all data contributors who are active:
active.cont <- get_contacts(contactstatus = 'active')
# To find all data contributors who have the last name "Smith"
smith.cont <- get_contacts(familyname = 'Smith')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.