list_to_frame: create a data.frame from a named list

Description Usage Arguments Value Examples

View source: R/list_to_frame.R

Description

create a data.frame from a named list

Usage

1
list_to_frame(setlist)

Arguments

setlist

a named list of character vectors.

Value

a data.frame. Each column represents an item from the input list. Each row is a string that was present in the input lists. For each row, the items get a value of how many times the contained this rowname.

Examples

1
2
3
4
5
6
7
8
library(ggdendroplot)

set1 <- rownames(subset(mtcars, mpg>18))
set2 <- rownames(subset(mtcars, qsec>18))
set3 <- rownames(subset(mtcars, cyl<5))
carset <- list(highMpg=set1, highQsec=set2, lowCyl=set3)

df <- list_to_frame(carset)

NicolasH2/ggdendroplot documentation built on Dec. 17, 2021, 5:24 a.m.