glottosimplify {glottospace}R Documentation

Simplify glottodata structures

Description

With glottosimplify, the structure of a glottodata object is simplified by removing tables and properties

Usage

glottosimplify(
  glottodata,
  droplist = TRUE,
  dropmeta = TRUE,
  dropspatial = TRUE,
  submerge = TRUE,
  dropunits = FALSE
)

Arguments

glottodata

glottodata or glottosubdata.

droplist

By default, if only one sheet is loaded, the data will be returned as a data.frame (instead of placing the data inside a list of length 1)

dropmeta

By default all metadata is removed.

dropspatial

By default spatial properties are removed.

submerge

By default, glottosubdata tables are merged into a single glottodata table.

dropunits

By default units are kept.

Value

a simplified version of the original dataset, either a data.frame/tibble or a list (depending on the selected options)

Examples

glottodata <- glottoget("demodata", meta = TRUE)
glottosimplify(glottodata)

[Package glottospace version 0.0.112 Index]