glottofilterflex: Flexible version of glottofilter

View source: R/glottofilter.R

glottofilterflexR Documentation

Flexible version of glottofilter

Description

This is a more flexible alternative to glottofilter, allowing for negative selections.

Usage

glottofilterflex(glottodata, colname, select)

Arguments

glottodata

glottodata table

colname

Character with a single column name

select

Things to be selected in that column

Examples


glottodata <- glottoget("glottobase")
glottofilterflex(glottodata = glottodata, colname = "family",
select = "Indo-European")
glottofilterflex(glottodata = glottodata, colname = "family",
select = -"Indo-European")
glottofilterflex(glottodata = glottodata, colname = "country",
select = c("Germany", "Netherlands") )
glottofilterflex(glottodata = glottodata, colname = "country",
select = -c("Germany", "Netherlands") )
glottofilterflex(glottodata = glottodata, colname = "continent",
select = -c("South America", "Europe", "Asia", "Oceania", "Africa") )


SietzeN/glottospace documentation built on June 15, 2024, 10:45 p.m.