name8list: returns the same list but with names

Description Usage Arguments Details Value Examples

View source: R/f0.rbsb1.code.r

Description

Explores the branches of a list, returning the same valued list but adding names to the components if not existing. This is a way to comply one of the two requirements to be a rbsb-list (see is8rbsblist).

Usage

1
name8list(lili)

Arguments

lili

The list structure to be possibly named.

Details

The new names are obtained with form3names.

Value

The resulting named list.

Examples

1
2
3
4
5
 rbsb3k("reset");
 uu <- list(list(1:3, 4:6), 
 B=matrix(letters[1:20], nrow=5, dimnames=list(1:5, c("on", "tw", "th", "fo"))), 
 list(a=1:3, b=letters, list(array(1:8, c(2, 2, 2)))));
 name8list(uu);

rbsb documentation built on May 2, 2019, 4:41 p.m.

Related to name8list in rbsb...