View source: R/glottobooster.R
glottobooster | R Documentation |
This function restructures glottolog data, and optionally adds/removes data. If you want more flexibility in choosing which data to add/remove, you can use glottoboosterflex().
glottobooster(
glottologdata = NULL,
space = TRUE,
addfamname = TRUE,
addisolates = TRUE,
L1only = TRUE,
addfamsize = TRUE,
addfamsizerank = TRUE,
rename = TRUE
)
glottologdata |
data from glottolog, can be downloaded with glottoget("glottolog"). |
space |
Return spatial object? |
addfamname |
Add column with familiy names? |
addisolates |
Add column to identify isolates? |
L1only |
Keep only L1 languages (remove bookkeeping, unclassifiable, sign languages, etc.). |
addfamsize |
Add column with family size? |
addfamsizerank |
Add column with family size rank? |
rename |
Rename columns "id" to "glottocode" and "iso639p3code" to "isocode" |
This function is used to generate 'glottobase' (the reference dataset used throughout the glottospace R package). The default options generate 'glottobase', which can be loaded directly using glottoget("glottobase").
glottologdata object, either a spatial object (class: sf) or a data.frame.
Other <glottobooster>:
glottoboosterflex()
glottologdata <- glottoget("glottolog")
glottobase <- glottobooster(glottologdata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.