returns the same list but with names

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);

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.