pbdb_strata_auto: pbdb_strata_auto

Description Usage Arguments Value Examples

View source: R/pbdb_querys.R

Description

Returns a list of strata matching the given prefix or partial name. This can be used to implement auto-completion for strata names, and can be limited by geographic location if desired.

Usage

1
pbdb_strata_auto (...)

Arguments

...

arguments passed to the API. See documentation for accepted parameters in http://paleobiodb.org/data1.1/strata/auto. Eg:

  • name: a full or partial name. You can use % and _ as wildcards, but the query will be very slow if you put a wildcard at the beginning

  • rank: returns only strata of the specified rank: formation, group or member.

  • lngmin: numeric. The longitude boundaries will be normalized to fall between -180 and 180. Note that if you specify lngmin then you must also specify lngmax. Returns only records whose geographic location falls within the given bounding box (defined by lngmin, lngmax, latmin, latmax). It generate two adjacent bounding boxes if the range crosses the antimeridian.

  • lngmax: numeric. The longitude boundaries will be normalized to fall between -180 and 180.

  • latmin: numeric. between -90 and 90. Note that if you specify latmin then you must also specify latmax.

  • latmax: numeric. between -90 and 90.

  • loc: Return only strata associated with some occurrence whose geographic location falls within the specified geometry, specified in WKT format.

  • vocab: set vocab="pbdb" to show the complete name of the variables (by default variables have short 3-letter names)

  • ...

Value

a dataframe with information from the strata that matches our letters.

Examples

1
2
3
4
## Not run: 
pbdb_strata_auto (name= "Pin", vocab="pbdb") 

## End(Not run)

paleobioDB documentation built on July 26, 2020, 1:07 a.m.