Learn R Programming

mdgsa (version 1.4.2)

revList: Revert an annotation list.

Description

Inverts a list: names to elements / elements to names

Usage

revList(lis, tag = "listPos")

Arguments

lis
annotation list.
tag
substitutes missing list names if any.

Value

  • An inverted list.

See Also

annotMat2list, revList annotMat2list, annotList2mat

Examples

Run this code
lis <- list (Block1 = c("gen1", "gen2"), Block2 = c("gen1", "gen3"))
revList (lis)

Run the code above in your browser using DataLab