uncollapse | R Documentation |
Uncollapse data.table cols
uncollapse(dt, ..., sep = ";")
recollapse(dt, by, sep = ";")
dt |
data.table |
... |
cols |
sep |
string |
by |
string |
(dt <- data.table::data.table(
uniprot = 'Q9BQL6;Q96AC1;Q96AC1-3',
protein = 'FERM1_HUMAN;FERM2_HUMAN',
gene = 'FERMT1;FERMT2'))
(dt %<>% uncollapse(protein, gene, sep = ';'))
(dt %>% recollapse(by = 'uniprot'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.