Description Usage Arguments Examples
View source: R/split-data-frame-to-list.R
splite a data frame to a list
1 | split_df_to_list_group(data, column = "col")
|
data |
a data frame |
column |
a default parameter, please see details in example. |
1 2 3 4 5 6 | pathwayData <- data.frame(Var= paste0(rep("M",50),1:50),
Pathway = rep(paste0("p",1:10),each=5))
pathwayNum <- length(unique(pathwayData$Pathway));
groupPathwayColor <- structure(circlize::rand_color(pathwayNum),names=levels(factor(pathwayData$Pathway)));
groups <- split_df_to_list_group(pathwayData, 'Pathway');
groups
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.