<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hello everybody,
<p>I'm writting some functions for experimental designs. The one I'm working
on is similar to "fac.design" on Splus.
<br>The problem I have is with the form of the output :
<p>When the argument fraction is submitted, Splus gives something like
:
<p>&nbsp;&nbsp;&nbsp;&nbsp; A&nbsp; B&nbsp; C
<br>&nbsp;1&nbsp;&nbsp; -&nbsp; -&nbsp; -
<br>&nbsp;2&nbsp;&nbsp; +&nbsp; +&nbsp; -
<br>&nbsp;3&nbsp;&nbsp; +&nbsp; -&nbsp; +
<br>&nbsp;4&nbsp;&nbsp; -&nbsp; +&nbsp; +
<p>Fraction :&nbsp; ~A:B:C
<p>The first part of this output is the design, and the second part is
the formula which allows to fractionate the full design. This output isn't
a list.
<br>My problem is the following :
<br>I can't manage to obtain such a composite output. The lonely way I've
already found is to use :
<br>print(design)
<br>cat("Fraction:&nbsp; ")
<br>print(attr(design,"fraction")).
<p>This solution is only suitable for an output on screen, but it reveals
bad as soon as I assign this function
<br>to an object (for ex: tmp &lt;- fac.design( ....) ) since only the
last command I performed (here print(attr(design,"fraction")))
<br>is assigned to my object tmp.
<p>I hope someone can help me ...
<p>Regards,
<p>Isabelle Zabalza-Mezghani
<br>&nbsp;
<pre>--&nbsp;
Isabelle Zabalza-Mezghani&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tel : 01 47 52 61 99
Institut Fran&ccedil;ais du P&eacute;trole&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; E-mail : isabelle.zabalza-mezghani@ifp.fr
1-4 Av. Bois Preau - Bat Lauriers
92852 Rueil Malmaison Cedex, France</pre>
&nbsp;</html>