Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is.glottolog

Are these languages in glottolog?


Description

Takes any vector of languages or ISO codes and return a logical vector.

Usage

is.glottolog(x, response = FALSE)

Arguments

x

A character vector of languages (can be written in lower case)or ISO codes

response

logical. If TRUE, when language is absent, return warnings with a possible candidates.

Author(s)

George Moroz <agricolamz@gmail.com>

Examples

is.glottolog(c('Adyghe', 'Russian'))
is.glottolog('Buyaka')

# Add warning message with sugestions
is.glottolog(c('Adygey', 'Russian'), response = TRUE)
# > FALSE TRUE
# Warning message:
# In is.glottolog(c('Adyge', 'Russian'), response = TRUE) :
# Language Adyge is absent in our version of the Glottolog database. Did you mean Aduge, Adyghe?

lingtypology

Linguistic Typology and Mapping

v1.1.4
GPL (>= 2)
Authors
George Moroz [aut, cre] (<https://orcid.org/0000-0003-1990-6083>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.