Learn R Programming

glottospace (version 0.0.112)

glottofilterflex: 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

Run this code
# NOT RUN {
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") )
# }

Run the code above in your browser using DataLab