glottomatch: glottomatch

View source: R/glottomatch.R

glottomatchR Documentation

glottomatch

Description

Match a vector of language names to glottocodes and names

Usage

glottomatch(namevec, glottodata = NULL, tolerance = NULL)

Arguments

namevec

Vector of language names

glottodata

Optional, where to search for matches. If kept empty, the entire glottolog database will be searched, you could also search within a specific area

tolerance

Optional, search tolerance.

Value

a data.frame with exact or closest matches, and their glottocodes.

Examples

glottodata <- glottofilter(continent = "South America")
# Finds a single match
glottomatch(name = "yucuni", glottodata = glottodata)
# Finds multiple matches
glottomatch(name = "quechui", glottodata = glottodata)

SietzeN/glottospace documentation built on June 15, 2024, 10:45 p.m.