| validate_group_map | R Documentation |
Normalizes and checks a symbol → group mapping for a given set of symbols.
Accepts either a data.frame/data.table with columns Symbol and Group,
or a named character vector c(symbol = "group", ...).
Errors if any requested symbol is missing or mapped more than once.
validate_group_map(symbols, group_map)
symbols |
Character vector of symbols to validate/keep. |
group_map |
Data frame/data.table with columns |
A two-column data.frame with columns Symbol and Group
(one row per symbol), sorted by Symbol.
validate_group_map(
c("A","B"),
data.frame(Symbol = c("A","B"), Group = c("G1","G1"))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.