Load locally stored glottodata, download databases from online sources, or load built-in demo data
glottoget(
glottodata = NULL,
meta = FALSE,
download = FALSE,
dirpath = NULL,
url = NULL
)options are:
A filepath to locally stored glottodata or glottosubdata with file extension (.xlsx .xls .gpkg .shp). See also: options meta and simplify.
"glottobase" - Default option, an spatially enhanced version of glottolog. See glottobooster for details. If glottodata = NULL, "glottobase" will be loaded.
"wals" - This is a spatially enhanced version of WALS.
"dplace" - Not yet supported. This is a spatially enhanced version of D-PLACE.
"glottolog" - This is a restructured (non-spatial) version of glottolog.
"glottospace" - A simple dataset with glottocodes and a geometry column. This is a subset of all languages in glottolog with spatial coordinates.
"demodata" - Built-in artificial glottodata (included for demonstration and testing).
"demosubdata" - Built-in artificial glottosubdata (included for demonstration and testing)
In case 'glottodata' is demodata/demosubdata: by default, meta sheets are not loaded. Use meta=TRUE if you want to include them.
By default internally stored versions of global databases are used. Specify download = TRUE in case you want to download the latest version from a remote server.
Optional, if you want to store a global CLDF dataset in a specific directory, or load it from a specific directory.
Zenodo url, something like this: "https://zenodo.org/api/records/3260727"
A glottodata or glottosubdata object (a data.frame or list, depending on which glottodata is requested)
Other <glottodata>:
glottosave()
# NOT RUN {
glottoget("glottolog")
# }
Run the code above in your browser using DataLab