Skip to content

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

License

Notifications You must be signed in to change notification settings

Glottography/Rglottography

Repository files navigation

Rglottography

R-CMD-check

Rglottography provides programmatic access to Glottography, an online repository of geospatial speaker-area polygons for the world’s languages. The package allows users to list available datasets, download them from Zenodo, and load them as standard spatial (sf) objects in R.

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 from Zenodo on first use.
glottography <- load_datasets("matsumae2021exploring")
languages <- glottography$languages

See the package vignettes for more detailed examples.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages