get_contacts: A function to obtain contact information for data...

Description Usage Arguments Value Author(s) References Examples

Description

A function to obtain contact information for data contributors from the Neotoma Paleoecological Database.

Usage

1
2
  get_contacts(contactid, contactname, contactstatus,
    familyname)

Arguments

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.

Value

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:

Author(s)

Simon J. Goring simon.j.goring@gmail.com

References

Neotoma Project Website: http://www.neotomadb.org API Reference: http://api.neotomadb.org/doc/resources/contacts

Examples

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)

neotoma documentation built on May 2, 2019, 5:55 p.m.