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.
pbdb_strata_auto (...)
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)
...
a dataframe with information from the strata that matches our letters.
# NOT RUN {
pbdb_strata_auto (name= "Pin", vocab="pbdb")
# }
Run the code above in your browser using DataLab