Enumerate: Enumerate a list or vector

View source: R/zzz.R

EnumerateR Documentation

Enumerate a list or vector

Description

Enumerate a list or vector

Usage

Enumerate(x)

Arguments

x

A list or a vector

Value

A list of length x with the following named values:

name

The name of x at a given index

value

The value of x at the corresponding index

Note

For any given index i in x, all attempts to use the name of the value of x at i will be made. If there is no name (eg. nchar(x = names(x = x)[i]) == 0), the index i will be used in its stead


satijalab/seurat-data documentation built on April 12, 2025, 7:45 p.m.