Package 'milestoneR'

Title: Access the Database of the Milestones Project
Description: This package provides a simple R interface to the database tables used in the Milestones Project, <https://datavis.ca/milestones/>, reflecting the history of data visualization, as used in datavis.ca/milestones. Functions are provided to retrieve the tables of milestones events, authors, references, etc.
Authors: Michael Friendly [aut, cre] (ORCID: <https://orcid.org/0000-0002-3237-0941>), Matthew Dubins [aut]
Maintainer: Michael Friendly <[email protected]>
License: GPL-3
Version: 0.4.0
Built: 2026-11-29 21:22:49 UTC
Source: https://github.com/friendly/milestoneR

Help Index


Aspect classification data from the Milestones Project

Description

Retrieve the aspect table containing aspect classifications that indicate the role milestone events played in the history of data visualization.

Usage

aspect()

Format

A data frame. See aspect() for details.

Details

The aspect classification indicates the role an event played in the history of data visualization. Use milestone2aspect() to link milestones to their aspects.

Value

A data frame with 4 rows and 2 variables:

asid

aspect id, a numeric vector

name

aspect name (Cartography, Statistics & Graphics, Technology, Other), a character vector

Source

https://datavis.ca/milestones/

See Also

milestone2aspect()

Examples

## Not run: 
# Get all aspects
aspect()

## End(Not run)

Author data from the Milestones Project

Description

Retrieve the author table containing information about authors associated with milestone events in the history of data visualization.

Usage

authors()

Format

A data frame. See authors() for details.

Value

A data frame with 290 rows and 15 variables:

aid

author id, a numeric vector

prefix

name prefix, a character vector

givennames

given names, a character vector

lname

last name, a character vector

suffix

name suffix, a character vector

lived

years lived, a character vector

birthdate

birth date, a Date vector

birthplace

place of birth, a character vector

birthlat

latitude of birthplace, a numeric vector

birthlong

longitude of birthplace, a numeric vector

deathdate

death date, a Date vector

deathplace

place of death, a character vector

deathlat

latitude of deathplace, a numeric vector

deathlong

longitude of deathplace, a numeric vector

note

notes about this author, a character vector

Source

https://datavis.ca/milestones/

Examples

# Get all authors
aut <- authors()

# Authors with a known birthplace
born <- subset(aut, !is.na(birthplace), select = c(givennames, lname, lived, birthplace))
head(born)

Define Historical Epochs for Timeline Visualization

Description

The idea of an "epoch" is to provide a grouping of years of into time periods that can be characterized by some theme. define_epoch() creates a data structure defining historical epochs or use in timeline visualizations, or analysis of milestones items. It returns a data frame with epoch boundaries, labels, and calculated midpoints.

Usage

define_epochs(
  breaks = NULL,
  labels = NULL,
  descriptions = NULL,
  style = c("default", "custom"),
  extend = NULL
)

## S3 method for class 'milestone_epochs'
print(x, ...)

Arguments

breaks

Numeric vector of boundary years (for custom epochs). Must be sorted in ascending order.

labels

Character vector of epoch names. Length must be one less than length of breaks.

descriptions

Optional character vector of longer descriptions for each epoch.

style

Character. Either "default" to use predefined epochs, or "custom" to use provided breaks and labels.

extend

Character or logical. How to extend the default epochs:

  • NULL or FALSE: Use defaults as-is (1500-2000)

  • "before": Add Prehistory epoch (-Inf to 1500)

  • "after": Add Digital Age epoch (2000 to current year)

  • "both" or TRUE: Add both Prehistory and Digital Age

Only used when style = "default".

x

An object of class "milestone_epochs".

...

Additional arguments (currently ignored).

Details

The functions epoch_boundaries() and get_epoch() provide tools for working with epochs in relation to milestones events.

The default epochs are based on the period classification described in Friendly et al. (2015) for use in producing timeline with interpretable labels. The extend argument allows these defaults to be extended to earlier or later periods.

  • 1500-1600: Early maps & diagrams

  • 1600-1700: Measurement & theory

  • 1700-1800: New graphic forms

  • 1800-1850: Modern age

  • 1850-1900: Golden Age

  • 1900-1950: Dark age

  • 1950-1975: Re-birth

  • 1975-2000: Hi-Dim Vis

You can create your own time epochs using style = "custom" and providing breaks and labels

The returned data frame has class c("milestone_epochs", "data.frame") and contains columns:

  • epoch_id: Sequential identifier (1, 2, 3, ...)

  • start: Start year of epoch

  • end: End year of epoch

  • label: Short display name

  • midpoint: (start + end) / 2, useful for label positioning

  • description: Optional longer description

Value

A data frame of class c("milestone_epochs", "data.frame") with one row per epoch.

Invisibly returns the input object.

References

Friendly, M., Sigal, M. & Harnanansingh, D. (2015). "The Milestones Project: A Database for the History of Data Visualization." In Kimball, M. & Kostelnick, C. (Eds.) Visible Numbers: The Historyof Data Visualization, Chapter 10.

See Also

epoch_boundaries(), get_epoch()

Examples

# Get default epochs
epochs <- define_epochs()
print(epochs)

# print it just as a plain data.frame
as.data.frame(epochs)

# Extend with Prehistory and Digital Age
extended <- define_epochs(extend = TRUE)
print(extended)

# Extend only before
with_prehistory <- define_epochs(extend = "before")

# Define custom epochs (4 breaks creates 3 intervals)
my_epochs <- define_epochs(
  breaks = c(1600, 1750, 1900, 2000),
  labels = c("Early Modern", "Enlightenment", "Industrial"),
  style = "custom"
)

# Get epoch boundaries for plotting vertical lines
boundaries <- epoch_boundaries(epochs)

# ---- Relating milestone items to epochs ----
# Load milestone data
ms <- milestone()

# Attach epoch labels to each milestone
ms$epoch <- get_epoch(ms$date_from_numeric, extended)

# Create a frequency table of milestones by epoch
table(ms$epoch, useNA = "ifany")

# Or as a data frame with counts
as.data.frame(table(epoch = ms$epoch))

# Get summary statistics for each epoch: count, min year, max year
# (in epoch order, not alphabetical)
by_epoch <- split(ms$date_from_numeric, factor(ms$epoch, levels = extended$label))
data.frame(n        = lengths(by_epoch),
           min_year = sapply(by_epoch, min),
           max_year = sapply(by_epoch, max))

Extract Epoch Boundaries

Description

Extracts the unique boundary years from an epoch definition. Useful for adding vertical reference lines at epoch transitions.

Usage

epoch_boundaries(epochs)

Arguments

epochs

An object of class "milestone_epochs" created by define_epochs.

Value

A numeric vector of unique, sorted boundary years.

See Also

define_epochs(), get_epoch()

Examples

epochs <- define_epochs()
boundaries <- epoch_boundaries(epochs)
print(boundaries)

Export the Milestones database to YAML files

Description

Writes the Milestones Project data to a folder of plain-text YAML files: one file per milestone, plus shared files for authors, references and the controlled vocabularies (aspects, subjects, keywords). The files are meant to be the editable, version-controlled source of the data. read_milestones_yaml() reads them back into the package's tables.

Usage

export_milestones_yaml(dir, overwrite = FALSE, quiet = FALSE)

Arguments

dir

Folder to write into. It is created if needed.

overwrite

Logical. If FALSE (the default), stop if dir already contains milestone files.

quiet

Logical. If TRUE, don't report what was written.

Details

The layout is:

<dir>/
  milestones/<slug>.yaml   one per milestone, e.g. 1786Playfair.yaml (characters other
                           than letters, digits, `_`, `.`, `-` are dropped from the name)
  authors.yaml             all authors, keyed by "Family, Given"
  references.yaml          all references, keyed by BibTeX key
  vocabulary.yaml          aspect, subject and keyword names, with their ids

Within a milestone file, authors, references, keywords, aspects and subjects are given by name or key, not by integer id. Database ids (mid, aid, rid) are kept as ⁠id:⁠ fields so the tables can be rebuilt exactly. New items can leave them out.

Some cleaning is applied on export:

  • Text fields have ⁠\r\n⁠ converted to ⁠\n⁠ and trailing white space removed. Values that are then empty become missing and are omitted.

  • Author family names come from the cleaned lnames column (no HTML entities).

  • Duplicate rows in the link tables are dropped, as are links to authors not in the author table (in the database, aid 1 is "Unknown"). A milestone without ⁠authors:⁠ has unknown author(s).

  • A duplicated bibtexkey gets the suffix ⁠-<rid>⁠ to make the key unique, and the original value is kept in a bibtexkey field.

  • add_date and modified_date (m/d/yy in the database) are written as ISO dates. The MySQL "zero date" 0000-00-00 is treated as missing.

  • Image URLs under ⁠http://datavis.ca/milestones/uploads/images/⁠ are written as a ⁠file:⁠ path relative to that folder.

Value

The paths of the files written, invisibly.

See Also

read_milestones_yaml()

Examples

## Not run: 
dir <- file.path(tempdir(), "milestones-yaml")
export_milestones_yaml(dir)
list.files(dir, recursive = TRUE)[1:5]
cat(readLines(file.path(dir, "milestones", "1786Playfair.yaml")), sep = "\n")

## End(Not run)

Get Epoch for Given Year(s)

Description

Determines which epoch(s) one or more years belong to.

Usage

get_epoch(year, epochs, label = TRUE)

Arguments

year

Numeric vector of years to classify.

epochs

An object of class "milestone_epochs" created by define_epochs.

label

Logical. If TRUE, return epoch labels; if FALSE, return epoch IDs.

Value

A character vector (if label = TRUE) or integer vector (if label = FALSE) indicating which epoch each year belongs to. Years outside the epoch range return NA.

See Also

define_epochs(), epoch_boundaries()

Examples

epochs <- define_epochs()

# Which epoch is 1850?
get_epoch(1850, epochs)

# Multiple years
get_epoch(c(1650, 1850, 1975), epochs)

# Get IDs instead of labels
get_epoch(c(1650, 1850), epochs, label = FALSE)

# Attach epochs to all milestones for analysis
ms <- milestone()
extended <- define_epochs(extend = "before")
ms$epoch <- get_epoch(ms$date_from_numeric, extended)

# Frequency table of milestones by epoch
table(ms$epoch)

# Cross-tabulate by epoch and subject
ms_subjects <- milestone2subject()
ms_with_subject <- merge(ms, ms_subjects, by = "mid")
table(ms_with_subject$epoch, ms_with_subject$subject)

Get aspects associated with milestone(s)

Description

Retrieves aspect information for one or more milestones from the milestone2aspect table, which already includes aspect names.

Usage

get_milestone_aspects(mid)

Arguments

mid

A numeric vector of milestone IDs

Value

A data frame with columns mid, asid, and aspect

Examples

## Not run: 
# Get aspects for a single milestone
get_milestone_aspects(53)

# Get aspects for multiple milestones
get_milestone_aspects(c(53, 54, 55))

## End(Not run)

Get authors associated with milestone(s)

Description

Retrieves author information for one or more milestones by joining the milestone2author linking table with the author table.

Usage

get_milestone_authors(mid)

Arguments

mid

A numeric vector of milestone IDs

Value

A data frame with columns from both milestone2author and author tables, including mid, aid, and all author fields (prefix, givennames, lname, etc.)

Examples

## Not run: 
# Get authors for a single milestone
get_milestone_authors(53)

# Get authors for multiple milestones
get_milestone_authors(c(53, 54, 55))

## End(Not run)

Get keywords associated with milestone(s)

Description

Retrieves keyword information for one or more milestones from the milestone2keyword table, which already includes keyword names.

Usage

get_milestone_keywords(mid)

Arguments

mid

A numeric vector of milestone IDs

Value

A data frame with columns mid, kid, and keyword

Examples

## Not run: 
# Get keywords for a single milestone
get_milestone_keywords(53)

# Get keywords for multiple milestones
get_milestone_keywords(c(53, 54, 55))

## End(Not run)

Get media items associated with milestone(s)

Description

Retrieves media item information for one or more milestones from the mediaitem table, which contains the mid field directly (no linking table needed).

Usage

get_milestone_media(mid)

Arguments

mid

A numeric vector of milestone IDs

Value

A data frame with columns from the mediaitem table, including mid, miid, type, url, title, caption, source, and type2

Examples

## Not run: 
# Get media items for a single milestone
get_milestone_media(53)

# Get media items for multiple milestones
get_milestone_media(c(53, 54, 55))

## End(Not run)

Get references associated with milestone(s)

Description

Retrieves reference information for one or more milestones by joining the milestone2reference linking table with the reference table.

Usage

get_milestone_references(mid)

Arguments

mid

A numeric vector of milestone IDs

Value

A data frame with columns from both milestone2reference and reference tables, including mid, rid, and all reference fields (author, title, year, etc.)

Examples

## Not run: 
# Get references for a single milestone
get_milestone_references(53)

# Get references for multiple milestones
get_milestone_references(c(53, 54, 55))

## End(Not run)

Get subjects associated with milestone(s)

Description

Retrieves subject information for one or more milestones from the milestone2subject table, which already includes subject names.

Usage

get_milestone_subjects(mid)

Arguments

mid

A numeric vector of milestone IDs

Value

A data frame with columns mid, sid, and subject

Examples

## Not run: 
# Get subjects for a single milestone
get_milestone_subjects(53)

# Get subjects for multiple milestones
get_milestone_subjects(c(53, 54, 55))

## End(Not run)

Keyword data from the Milestones Project

Description

Retrieve the keyword table containing keywords or terms attached to milestone items as a freeform classification.

Usage

keyword()

Format

A data frame. See keyword() for details.

Details

This is a freeform classification listing keywords or terms attached to milestone items. Use milestone2keyword() to link milestones to their keywords.

Value

A data frame with 335 rows and 2 variables:

kid

keyword id, a numeric vector

name

keyword name, a character vector

Source

https://datavis.ca/milestones/

See Also

milestone2keyword()

Examples

# Get all keywords
kw <- keyword()

# Find keywords containing "chart"
subset(kw, grepl("chart", name, ignore.case = TRUE))

Retrieve the mediaitem table from the milestones database

Description

The mediaitem table gives each link or image used in displaying the milestones items

A dataset containing links and images used in displaying milestone items.

Usage

mediaitem()

data(mediaitem)

Format

A data frame with 600 rows and 8 variables:

miid

mediaitem id, a numeric vector

type

type (link or image), a character vector

url

URL to the media item, a character vector

title

title or caption, a character vector

caption

caption text, a character vector

source

source of the media, a character vector

mid

milestone id to which this is attached, a numeric vector

type2

secondary type classification, a character vector

Details

The fields in the mediaitem table are:

miid

mediaitem id, a numeric vector

type

type, a character vector, with values link, image

url

URL to reference this item in the milestones application

title

a character vector

caption

a character vector

source

a character vector

mid

milestones id to which this is attached, a numeric vector

For type=="link", these give a standard HTML reference in the url field. For type=="image", the url field references the image in the milestones website.

Value

Returns a tibble of the mediaitem table

Source

https://datavis.ca/milestones/


Milestone data from the Milestones Project

Description

Retrieve the milestone table containing milestone events in the history of data visualization. This is the primary table in the database. Other tables are linked to it via the mid key.

Usage

milestone()

Format

A data frame. See milestone() for details.

Value

A data frame with 297 rows and 14 variables:

mid

milestone id, a numeric vector

slug

title slug, a character vector

date_from_numeric

numeric start date, a numeric vector

date_from

start date text, a character vector

date_to_numeric

numeric end date, a numeric vector

date_to

end date text, a character vector

tag

tag line, a character vector

description

description of the milestone, a character vector

location

location, a character vector

add_date

date added to database, a character vector

modified_date

date last modified, a character vector

status

publication status, a character vector

note

notes, a character vector

extra

extra information, a character vector

Source

https://datavis.ca/milestones/

Examples

# Get all milestones
m <- milestone()

# Filter by date: BC milestones
subset(m, date_from_numeric < 0, select = c(slug, date_from, tag))

Retrieve the milestone2aspect table from the milestones database

Description

The milestone2aspect table links milestones to their aspect classifications.

Usage

milestone2aspect()

Format

A data frame. See milestone2aspect() for details.

Details

The fields in the milestone2aspect table are:

mid

milestone id, a numeric vector

asid

aspect id, a numeric vector

aspect

aspect name, a character vector

This table links milestones to aspects. The aspect field is included for convenience (joined from the aspect() table).

Value

Returns a tibble of the milestone2aspect table

See Also

aspect(), milestone()

Examples

## Not run: 
# Get milestone-aspect links
m2a <- milestone2aspect()

## End(Not run)

Retrieve the milestone2author table from the milestones database

Description

The milestone2author table links milestones to their authors.

Usage

milestone2author()

Format

A data frame. See milestone2author() for details.

Details

The fields in the milestone2author table are:

mid

milestone id, a numeric vector

aid

author id, a numeric vector

This table links milestones to authors. Use with authors() to get author information.

Value

Returns a tibble of the milestone2author table

See Also

authors(), milestone()

Examples

## Not run: 
# Get milestone-author links
m2a <- milestone2author()

## End(Not run)

Retrieve the milestone2keyword table from the milestones database

Description

The milestone2keyword table links milestones to their keywords.

Usage

milestone2keyword()

Format

A data frame. See milestone2keyword() for details.

Details

The fields in the milestone2keyword table are:

mid

milestone id, a numeric vector

kid

keyword id, a numeric vector

keyword

keyword name, a character vector

This table links milestones to keywords. The keyword field is included for convenience (joined from the keyword() table).

Value

Returns a tibble of the milestone2keyword table

See Also

keyword(), milestone()

Examples

## Not run: 
# Get milestone-keyword links
m2k <- milestone2keyword()

## End(Not run)

Retrieve the milestone2reference table from the milestones database

Description

The milestone2reference table links milestones to their references.

Usage

milestone2reference()

Format

A data frame. See milestone2reference() for details.

Details

The fields in the milestone2reference table are:

mid

milestone id, a numeric vector

rid

reference id, a numeric vector

This table links milestones to references. Use with reference() to get reference information.

Value

Returns a tibble of the milestone2reference table

See Also

reference(), milestone()

Examples

## Not run: 
# Get milestone-reference links
m2r <- milestone2reference()

## End(Not run)

Retrieve the milestone2subject table from the milestones database

Description

The milestone2subject table links milestones to their subject classifications.

Usage

milestone2subject()

Format

A data frame. See milestone2subject() for details.

Details

The fields in the milestone2subject table are:

mid

milestone id, a numeric vector

sid

subject id, a numeric vector

subject

subject name, a character vector

This table links milestones to subjects. The subject field is included for convenience (joined from the subject() table).

Value

Returns a tibble of the milestone2subject table

See Also

subject(), milestone()

Examples

## Not run: 
# Get milestone-subject links
m2s <- milestone2subject()

## End(Not run)

Read Milestones YAML files into the package's data tables

Description

Reads a folder written by export_milestones_yaml() (and possibly edited since) and rebuilds the Milestones tables: milestone, author, reference, mediaitem, keyword, aspect, subject and the ⁠milestone2*⁠ link tables. They have the same columns as the datasets in this package.

Usage

read_milestones_yaml(dir)

Arguments

dir

Folder containing ⁠milestones/⁠, authors.yaml, references.yaml and vocabulary.yaml.

Details

Authors, references, keywords, aspects and subjects named in a milestone file must exist in authors.yaml, references.yaml and vocabulary.yaml. Every problem found is reported in one error message. Milestones, authors or references without an ⁠id:⁠ get the next free id. Media item ids (miid) are assigned in order, so they are not stable across edits.

Value

A named list of data frames.

See Also

export_milestones_yaml()

Examples

## Not run: 
dir <- file.path(tempdir(), "milestones-yaml")
export_milestones_yaml(dir, overwrite = TRUE)
tabs <- read_milestones_yaml(dir)
names(tabs)
head(tabs$milestone)

## End(Not run)

Retrieve the reference table from the milestones database

Description

The reference table gives the references associated with milestones items

A dataset containing bibliographic references associated with milestone events.

Usage

reference()

data(reference)

Format

A data frame with 352 rows and 17 variables:

rid

reference id, a numeric vector

type

reference type (article, book, incollection), a factor

author

author names, a character vector

title

title of publication, a character vector

journal

journal name (for articles), a character vector

month

month of publication, a character vector

year

year of publication, a character vector

volume

volume number, a character vector

number

issue number, a character vector

pages

page numbers, a character vector

publisher

publisher name, a character vector

address

publisher address, a character vector

editor

editor names, a character vector

booktitle

book title (for incollection), a character vector

bibtexkey

BibTeX key, a character vector

abstract

abstract, a character vector

note

notes, a character vector

Details

The fields in the reference table are:

rid

reference id, a numeric vector

type

reference type, a factor with levels article book incollection

author

author, a character vector

title

title of publication, a character vector

journal

journal name, for an article, character vector

month

month name, a character vector

year

a numeric vector

volume

a character vector

number

a character vector

pages

a character vector

publisher

a character vector

address

a character vector

editor

a character vector

booktitle

a character vector

bibtexkey

BibTeX key used in the source .bib files, a character vector

abstract

a character vector

note

a character vector

In the note field, ⁠Loc{}⁠ refers to a library catalog identifier, e.g, ⁠Loc{BL: IA 3Q024}⁠

TODO: need a function to turn these back to BibTeX

Value

Returns a tibble of the reference table

Source

https://datavis.ca/milestones/


Search milestones by author

Description

Search for milestones associated with authors whose names match a pattern.

Usage

search_authors(
  pattern,
  name_fields = c("givennames", "lname"),
  ignore.case = TRUE,
  output = c("mid", "print", "data"),
  ...
)

Arguments

pattern

Character string or regular expression to match against author names

name_fields

Character vector specifying which name fields to search. Options: "givennames", "lname" (last name), "prefix", "suffix". Default is c("givennames", "lname").

ignore.case

Logical; if TRUE (default), case is ignored during matching

output

Output format: "mid" returns milestone IDs (default), "print" prints formatted milestones, "data" returns milestone data frame

...

Additional arguments passed to print_milestone() when output = "print"

Details

This function searches author names and returns milestones associated with matching authors. The search is performed across specified name fields, and a milestone is returned if ANY associated author matches.

Value

Depends on output parameter (see search_milestones())

Examples

## Not run: 
# Find milestones by Halley
search_authors("Halley")

# Find milestones by authors with "John" in their name
search_authors("John")

# Search only last names
search_authors("Playfair", name_fields = "lname")

# Print formatted results
search_authors("Nightingale", output = "print")

## End(Not run)

Search milestones by keyword

Description

Search for milestones that have been tagged with specific keywords.

Usage

search_keywords(
  pattern,
  ignore.case = TRUE,
  output = c("mid", "print", "data"),
  ...
)

Arguments

pattern

Character string or regular expression to match against keywords

ignore.case

Logical; if TRUE (default), case is ignored during matching

output

Output format: "mid" returns milestone IDs (default), "print" prints formatted milestones, "data" returns milestone data frame

...

Additional arguments passed to print_milestone() when output = "print"

Details

This is a convenience function that searches the keyword field in the milestone2keyword table and returns matching milestones.

Value

Depends on output parameter (see search_milestones())

Examples

## Not run: 
# Find milestones tagged with "contour"
search_keywords("contour")

# Find milestones with statistical keywords
search_keywords("statistic")

# Print formatted results
search_keywords("visualization", output = "print")

## End(Not run)

Search milestones by text pattern

Description

Search for milestones matching a text pattern (regular expression) across specified fields in the milestone table.

Usage

search_milestones(
  pattern,
  fields = c("description", "tag", "note"),
  output = c("mid", "print", "data"),
  ignore.case = TRUE,
  ...
)

Arguments

pattern

Character string or regular expression to search for

fields

Character vector of field names to search. Default is c("description", "tag", "note"). Other searchable fields include: "slug", "date_from", "date_to", "location", "extra".

output

Output format: "mid" returns a numeric vector of milestone IDs, "print" prints formatted milestones and returns them invisibly, "data" returns the matching milestone data frame rows. Default is "mid".

ignore.case

Logical; if TRUE (default), case is ignored during matching

...

Additional arguments passed to print_milestone() when output = "print"

Details

The function searches for the pattern across all specified fields using regular expression matching. A milestone is included in the results if the pattern matches in ANY of the specified fields (OR logic).

The pattern argument accepts regular expressions, allowing for flexible searching:

  • Simple text: "contour" finds "contour map", "contours", etc.

  • Multiple terms: "chart|graph" finds either term

  • Word boundaries: "\\bmap\\b" finds "map" but not "bitmap"

  • Case patterns: "[Cc]artograph" finds "cartograph" or "Cartograph"

Value

Depends on output:

  • "mid": Numeric vector of matching milestone IDs

  • "print": Character vector of formatted milestones (invisibly), with formatted output printed to console

  • "data": Data frame of matching milestone rows

Examples

## Not run: 
# Find milestones mentioning "statistical"
search_milestones("statistical")

# Search in specific fields
search_milestones("Halley", fields = c("description", "note"))

# Use regex to find chart OR graph
search_milestones("chart|graph", fields = "description")

# Get and print formatted results
search_milestones("contour", output = "print")

# Get full data frame of matches
results <- search_milestones("visualization", output = "data")

# Search tags for specific terms
search_milestones("^1st", fields = "tag")

# Case-sensitive search
search_milestones("Map", ignore.case = FALSE)

## End(Not run)

Subject classification data from the Milestones Project

Description

Retrieve the subject table containing subject classifications that indicate the substantive context of milestone events.

Usage

subject()

Format

A data frame. See subject() for details.

Details

The subject classification indicates the substantive context of the milestone event. Use milestone2subject() to link milestones to their subjects.

Value

A data frame with 4 rows and 2 variables:

sid

subject id, a numeric vector

name

subject name (Physical, Mathematical, Human, Other), a character vector

Source

https://datavis.ca/milestones/

See Also

milestone2subject()

Examples

## Not run: 
# Get all subjects
subj <- subject()

## End(Not run)