Rglottography

Rglottography provides programmatic access to the Glottography dataset, a collection of language area polygons hosted on Zenodo and GitHub. The package allows users to list available datasets, download them, and load them as standard spatial (sf) objects in R.


Intended Users

Linguists, geographers, cultural anthropologists, and others working with areal linguistic data.


Core Functionality

Optional Functions


Data Model and Storage

Design Principles


Installation

You can install the development version of Rglottography from GitHub using remotes. If not already installed, first install remotes, then use it to install Rglottography from GitHub:

# install.packages("remotes")
remotes::install_github("Glottography/Rglottography")

Example

The following commands demonstrate usage:

library(Rglottography)

# List available datasets
list_datasets()

# Load the dataset matsumae2021exploring, downloading it on first use.
glottography <- load_datasets("matsumae2021exploring", install_missing = TRUE)
languages <- glottography$languages

See the package vignettes for more detailed examples.