inverseMapping: Inverse mapping

View source: R/util.R

inverseMappingR Documentation

Inverse mapping

Description

Strips the names and values of a list apart and rematches all the names that apply to each value.

Usage

inverseMapping(xList)

makeMultiMapping(xList)

Arguments

xList

a named list.

Value

Returns a list for the input values containing all the names that belong to each value in the input list.

Functions

  • makeMultiMapping: Unlists the input and returns a data.frame with separated names and values.

Author(s)

Rehrauer, Hubert

Schmid, Peter

Examples

l1 = list(a=1:3, b=c(2,5), c=4:8)
inverseMapping(l1)

uzh/ezRun documentation built on Dec. 26, 2024, 9:53 a.m.