glottoget {glottospace}R Documentation

Get glottodata from local path or online global databases

Description

Load locally stored glottodata, download databases from online sources, or load built-in demo data

Usage

glottoget(
  glottodata = NULL,
  meta = FALSE,
  download = FALSE,
  dirpath = NULL,
  url = NULL
)

Arguments

glottodata

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)

meta

In case 'glottodata' is demodata/demosubdata: by default, meta sheets are not loaded. Use meta=TRUE if you want to include them.

download

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.

dirpath

Optional, if you want to store a global CLDF dataset in a specific directory, or load it from a specific directory.

url

Zenodo url, something like this: "https://zenodo.org/api/records/3260727"

Value

A glottodata or glottosubdata object (a data.frame or list, depending on which glottodata is requested)

See Also

Other <glottodata>: glottosave()

Examples


glottoget("glottolog")


[Package glottospace version 0.0.112 Index]