which_tree | R Documentation |
Returns the tree number of one or more glottolog families.
which_tree(family, glottolog_version)
family |
A character vector. Elements are names of glottolog families
whose trees are to be returned. If |
glottolog_version |
A character string, specifying which glottolog
version to use. Currently available options are |
A named vector of integers, giving the tree numbers and the family names as the vector names.
which_tree("Caddoan")
which_tree(c("Caddoan", "Tangkic"), glottolog_version = "4.3")
# If some family names are unrecognized, a warning is issued
which_tree(c("Caddoan", "Zzz"), glottolog_version = "4.4")
## Not run:
# If no family names are recognized, an error results
which_tree()
which_tree("Zzz")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.