splititsnames_byValues: Split the names of list by its values.

View source: R/CodeAndRoll2.R

splititsnames_byValuesR Documentation

Split the names of list by its values.

Description

Split the names of a list by its its values.

Usage

splititsnames_byValues(namedVec)

Arguments

namedVec

A vector with names.

Value

A list of vectors, each of which contains the elements of namedVec that have the corresponding value.

Examples

namedVec <- c("A", "B", "C", "A", "B", "D")
splititsnames_byValues(namedVec)


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.