glottosearch {glottospace}R Documentation

Search within glottodata for languages, glottocodes, etc.

Description

Search within glottodata for languages, glottocodes, etc.

Usage

glottosearch(
  search,
  glottodata = NULL,
  partialmatch = TRUE,
  columns = NULL,
  tolerance = NULL
)

Arguments

search

Character string to search for, this can be the name of a language, a family, a glottocode, isocode.

glottodata

Any linguistic or cultural dataset. Default is to search within glottobase.

partialmatch

By default, partial matches will be returned as well. In case you only want exact matches, this argument should be set to FALSE.

columns

By default, the entire dataset is searched, but optionally the search can be limited to specific columns.

tolerance

In case partialmatch is TRUE: what is the maximum difference between search term and match? Default is 0.1

Value

A subset of glottodata that matches search conditions (object returned as a data.frame/tibble)

Examples


glottosearch(search = "Yucuni")
glottosearch(search = "Yucuni", columns = "name")
glottosearch(search = "Yucuni", columns = c("name", "family"))


[Package glottospace version 0.0.112 Index]