View source: R/collapse_labels.R
a data.frame used to overlay items in genoppi will look for non-unqiue gene names and combine them into a single informative line using their alt_label (e.g. snp) and their corrsponding dataset.
1 2 3 4 5 6 7 8 | collapse_labels(
overlay,
dataset = "dataset",
collapse_into = "alt_label",
collapse_by = "gene",
dataset_collapse_sep = ": ",
item_sep = " <br>"
)
|
overlay |
a data.frame |
dataset |
the main dataset name that is to be combined. |
collapse_into |
the column that will contain the collapsed entries. |
collapse_by |
what identifying colummn is the data to be collapsed by? |
dataset_collapse_sep |
how should the dataset column and collapse-column be seperated by when collapsed? |
item_sep |
how should each collapsed item be seperated from the next? Default is newline. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.