glottocheck | R Documentation |
This function first checks whether a dataset is glottodata or glottosubdata, and depending on the result calls glottocheck_data or glottocheck_subdata.
glottocheck(glottodata, diagnostic = TRUE, checkmeta = TRUE)
glottodata |
User-provided glottodata |
diagnostic |
If TRUE (default) a data viewer will be opened to show the levels of each variable (including NAs), and a data coverage plot will be shown. |
checkmeta |
Should metadata be checked as well? |
It subsequently checks whether:
one column exists with the name "glottocode"
there are rows without a glottocode (missing IDs)
there are rows with duplicated glottocodes (duplicate IDs)
all variables have at least two levels
all glottocodes are valid
Diagnostic messages highlighting potential issues with glottodata or glottosubdata.
glottodata <- glottoget("demodata")
glottocheck(glottodata, diagnostic = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.