View source: R/get_scale_data.R
get_scale_data | R Documentation |
This function takes a name of a geological timescale and returns data for the
timescale. Valid names include those of built-in data.frames
(periods()
,
epochs()
, stages()
, eons()
, or eras()
),
partial matches of those names (e.g., "per" or "stage"),
and exact matches to those hosted by Macrostrat (see full list here:
https://macrostrat.org/api/defs/timescales?all).
get_scale_data(name)
name |
The name of the desired timescale. |
A data.frame
with the following columns:
name |
the names of the time intervals. |
max_age |
the oldest boundaries of the time intervals, in millions of years. |
min_age |
the youngest boundaries of the time intervals, in millions of years. |
abbr |
either traditional abbreviations of the names of the time intervals (if they exist) or custom abbreviations created with R. |
color |
hex color codes associated with the time intervals (if applicable). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.