list2daf: transforms a list into a /daf/

Description Usage Arguments Details Value Examples

View source: R/f1.rbsb2.code.r

Description

This function transforms a list comprising the necessary components into a /daf/ object. The components of the list must be either the direct transcription of the slot hierarchy of /daf/ or (shortened way) a component named daf comprising a character(3) with [email protected], what and valu slots.

Usage

1

Arguments

li

The list to be transformed into a /daf/.

Details

The list li can comprise more components which are ignored. If li$daf exists, it will have priority over the possible slot components.

Value

returns the resulting /daf/ object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 rbsb3k("RESET"); # needed only for R checking, to be forgotten
 lu <- daf2list(new("daf", des=new("des", name="rbsb", 
 orig=paste("Created by rebastaba"), 
 time=date(), 
 defi="prototype", 
 role=character(0), 
 comm=character(0)), 
 what="d", 
 valu="rbsb.dfr0"));
 list2daf(lu);
 list2daf(list(daf=c("simple", "d", "rbsb.dfr0")));
 list2daf(rbsb.lis0);

rbsb documentation built on May 31, 2017, 1:45 a.m.