Learn R Programming

rmacrostrat (version 1.0.0)

def_measurements: Define measurements

Description

A function to retrieve the definitions of different measurements that are included in the Macrostrat database. By default, all definitions are returned.

Usage

def_measurements(
  measure_id = NULL,
  measurement_type = NULL,
  measurement_class = NULL
)

Value

A data.frame containing the following columns:

  • measure_id: The unique identification number of the measurement.

  • name: The name of the measurement.

  • type: Measurement type, less inclusive than class

  • class: Measurement class, more inclusive than type.

  • t_units: The total number of Macrostrat units containing this measurement.

Arguments

measure_id

integer. The unique identification number(s) of the desired measurement(s) to return a definition for.

measurement_type

character. Filter the returned definitions to those of one or more named type(s) of measurement (e.g., "geochronological"). This is a less inclusive grouping than measurement_class.

measurement_class

character. Filter the returned definitions to those of one or more named class(es) of measurement (e.g., "geochemical"). This is a more inclusive grouping than measurement_type.

Developer(s)

William Gearty

Reviewer(s)

Christopher D. Dean

See Also

External data: def_drilling_sites(), get_eodp(), get_fossils(), get_measurements()

Geologic features and attributes: def_econs(), def_environments(), def_grain_sizes(), def_lithologies(), def_lithology_att(), def_minerals(), def_structures()

Examples

Run this code
# \donttest{
# Return all definitions
ex1 <- def_measurements()
# Return subsets of definitions
ex2 <- def_measurements(measure_id = c(1, 2, 4))
ex3 <- def_measurements(measurement_class = "geochemical")
# }

Run the code above in your browser using DataLab