has.tags: Has.tags

Description Usage Arguments Examples

Description

Selects all affiliations that have one or several tags

Usage

1
has.tags(x, tags, res = "affiliations", silent = FALSE)

Arguments

x

an affiliation edge list

tags

is a character vector of tags

res

if "affiliations" has.tags returns a character vector with unique affiliation names. If res is "names", a character vector of unique names is returned. If res is "relations", a subset of x is returned.

silent

if TRUE the table with the number of matched positions per tag is not shown.

Examples

1
2
3
4
data(den)
has.tags(den, tags = c("Youth", "Children"))
has.tags(den, tags = c("Youth", "Children"), res = "names")
has.tags(den, tags = c("Youth", "Children"), res = "relations")

antongrau/soc.elite documentation built on May 10, 2019, 12:25 p.m.