set8listcomp: modifies one component from a list structure

Description Usage Arguments Value Examples

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

Description

Replaces one component from a list structure which must not be a list (neither before or after the replacement). The list lili must have been explored with explore8list and the branch to modify is indicated through its line in the generated table by tata.

Usage

1
set8listcomp(x, lili, tata)

Arguments

x

The object to be inserted in place of the former one.

lili

The list structure a component of which is to be modified.

tata

The line (not the line number) of the table provided by explore8list indicating the component to replace.

Value

The new resulting list

Examples

1
2
3
4
5
6
 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);
 set8listcomp(LETTERS, uu, vv[7, ]);

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

Related to set8listcomp in rbsb...