fromList: Obtaining intersections from a list of named vectors

fromListR Documentation

Obtaining intersections from a list of named vectors

Description

Modified version of fromList (UpSetR package). Transforms a list of named vectors to a data frame compatible with the upset function.

Usage

fromList(list)

Arguments

list

A list of named vectors, each including one group of elements of interest.

Value

A data.frame with the (unique) elements within the list as row names and one column per group. Values of 0 or 1 will be shown if the element is present or absent from the group, respectively.

References

The fromList() function is originally included in the UpSetR package:

\insertRef

Conway2017acorde

The present modifications to the fromList() function were obtained from user @docmanny's contribution in this GitHub issue.


ConesaLab/acorde documentation built on Feb. 25, 2024, 4:16 a.m.