get8listcomp: returns components from a list structure

Description Usage Arguments Details Value Examples

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

Description

Returns components from a list structure as a one level list. The list lili must have been explored with explore8list and the branch(es) to return are indicated through their line numbers (tata) in the table it generates.

Usage

1
get8listcomp(lili, tata)

Arguments

lili

The list structure components of which have to be extracted.

tata

The lines of the table provided by explore8list.

Details

Names of the produced list are the stacked names of the initial list lili.

Value

The resulting list with as many component as indicated rows.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 rbsb3k("reset");
 uu <- list(A=1:3, 
 B=matrix(letters[1:20], nrow=5, dimnames=list(1:5, c("on", "tw", "th", "fo"))), 
 C=list(a=1:3, b=letters, c=list(final=array(1:8, c(2, 2, 2)))));
 vv <- explore8list(uu);
 get8listcomp(uu, vv[7, ])[[1]];
 uu <- list(1:3, 
 matrix(letters[1:20], nrow=5, dimnames=list(1:5, c("on", "tw", "th", "fo"))), 
 list(a=1:3, b=letters, c=list(final=array(1:8, c(2, 2, 2)))));
 vv <- explore8list(uu);
 get8listcomp(uu, vv[7, ])[[1]];

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

Related to get8listcomp in rbsb...