def_sources {rmacrostrat} | R Documentation |
A function to retrieve the definitions for one or more geologic map sources in the Macrostrat database. By default, all source definitions are returned.
def_sources(
source_id = NULL,
lat = NULL,
lng = NULL,
shape = NULL,
buffer = NULL,
scale = NULL,
sf = TRUE
)
source_id |
|
lat |
|
lng |
|
shape |
|
buffer |
|
scale |
|
sf |
|
A data.frame
containing the following columns:
source_id
: Identification number of the geologic map source.
name
: Name of the geologic map source.
url
: URL where additional information, the source, or
contributing publication can be found.
ref_title
: Title of reference for geologic map source.
authors
: Authors of geologic map source.
ref_year
: Year of reference publication.
ref_source
: Original publication source of the reference.
isbn_doi
: The ISBN or DOI for the reference.
scale
: The Macrostrat scale the geologic map source belongs
to.
features
: The total number of features (i.e., outcrop shape
and point elements) associated with the geologic map source.
area
: The total geographic area of the geologic map source
in km2.
If sf
is TRUE
(the default), an sf
object is returned instead, with
the same columns plus a "geometry" column that contains the spatial data.
William Gearty
Lewis A. Jones
Geologic maps:
get_map_legends()
,
get_map_outcrop()
,
get_map_points()
Macrostrat database metadata:
def_projects()
,
def_references()
,
get_stats()
# Get all sources
ex1 <- def_sources()
# Get subset of sources
ex2 <- def_sources(source_id = c(1,2,4))
ex3 <- def_sources(lat = 43.03, lng = -89.4, scale = "large")
# Use WKT representation
library(sf)
line <- st_linestring(x = matrix(c(-122.3438, 37,-89.3527, 43.0582),
byrow = TRUE, ncol = 2))
ex4 <- def_sources(shape = st_as_text(line), buffer = 100)