sectors.to.role | R Documentation |
sectors.to.role constructs a role or position variable on the basis of sectors. If the sectors are mutually exclusive it constructs a single named vector. If a person has roles in more than one sector it is the last sector in the list of sectors that counts.
sectors.to.role(
den,
list.dens,
role = c("Chief executive", "Executive"),
other = "Other",
mutually.exclusive = FALSE
)
den |
a den class object, see as.den with a ROLE variable |
list.dens |
a list of den objects that corresponds to the sectors |
role |
the set of roles |
other |
either FALSE or the label for the "Other" category. |
mutually.exclusive |
if TRUE sectors are mututally exclusive |
either a matrix or a named vector
data(den)
den <- as.den(den)
list.dens <- tags.to.sectors(den, standard.sectors("Danish"))
sectors.to.role(den, list.dens, mutually.exclusive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.