unlistNested: Unlists a nested list and removes NA values and duplicates.

View source: R/utils-matchNested.R

unlistNestedR Documentation

Unlists a nested list and removes NA values and duplicates.

Description

This function takes a nested list as input and unlists it recursively. It then removes any NA values and duplicates from the resulting vector.

Usage

unlistNested(element)

Arguments

element

The nested list to be unlisted.

Value

A vector with NA values and duplicates removed.

Examples

nested_list <- list(a = list(1, 2, NA), b = list(3, 4, 5))
unlistNested(nested_list)
# Output: [1] 1 2 3 4 5


bhklab/AnnotationGx documentation built on April 3, 2025, 4:27 p.m.