View source: R/Composite_table.R
as_multinames | R Documentation |
Create Composite Table multinames from a character vector
as_multinames(x)
x |
a character vector of equal length as the data.frame for which it the multinames should be created. |
a named integer vector that can be used as multinames attribute for a Composite_table
dat <- data.frame(
apple = 1,
banana = 2,
dog = 1,
cat = 2,
parrot = 3
)
multinames(dat) <- as_multinames(
c('fruit', 'fruit', 'animal', 'animal', 'animal')
)
multinames(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.