Description Usage Arguments Value Author(s) References Examples
A function to obtain contact information for data contributors from the Neotoma Paleoecological Database.
1 | get_contact(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 checks 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:
|
Full name of the person, last name first (e.g. |
|
Current status of the person, organization, or project. Field links to the ContactStatuses lookup table. |
|
Family or surname name of a person. |
|
Leading initials for given or forenames without spaces (e.g. |
|
Given or forenames of a person (e.g. |
|
Suffix of a person's name (e.g. |
|
A person's title (e.g. |
|
Telephone number. |
|
Fax number. |
|
Email address. |
|
Universal Resource Locator, an Internet World Wide Web address. |
|
Full mailing address. |
|
Free form notes or comments about the person, organization, or project. |
|
Unique database record identifier for the contact. |
|
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. |
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_contact(contactstatus = 'active')
# To find all data contributors who have the last name "Smith"
smith.cont <- get_contact(familyname = 'Smith')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.