glottocheck {glottospace} | R Documentation |
Quality check of glottodata or glottosubdata
Description
This function first checks whether a dataset is glottodata or glottosubdata, and depending on the result calls glottocheck_data or glottocheck_subdata.
Usage
glottocheck(glottodata, diagnostic = TRUE, checkmeta = FALSE)
Arguments
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? |
Details
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
Value
Diagnostic messages highlighting potential issues with glottodata or glottosubdata.
Examples
glottodata <- glottoget("demodata")
glottocheck(glottodata, diagnostic = FALSE)
[Package glottospace version 0.0.112 Index]