tags.to.sectors: Convert list of tags to sectors

View source: R/tags.R

tags.to.sectorsR Documentation

Convert list of tags to sectors

Description

Convert list of tags to sectors

Usage

tags.to.sectors(
  den,
  sector.tags,
  other = "Other",
  silent = FALSE,
  mutually.exclusive = FALSE,
  sector.membership = FALSE
)

Arguments

den

a den class object

sector.tags

a list of tags

other

The other category, if FALSE, it is omitted

silent

if FALSE the number of matched positions and affiliations is printed

mutually.exclusive

if TRUE the produced sectors are mutually exclusive

sector.membership

if TRUE a data.frame with a mutually exclusive sector memberships vector is returned

Value

a list of den objects

Examples

data(den)
sectors        <- standard.sectors("Danish")
tags.to.sectors(den, sectors)
tags.to.sectors(den, sectors, mutually.exclusive = TRUE, sector.membership = TRUE)

antongrau/eliter documentation built on March 2, 2024, 8:05 p.m.