[R] Reporting with down and across variables

Matthew Pettis matthew.pettis at gmail.com
Thu Sep 18 02:10:31 CEST 2008


Hi,

I have a dataframe like the following:

xfact   yfact   zfact   response
-------   -------   -------   --------------
x1       y1      z1          r1
x1       y1      z2          r2
...

I want output that looks like:

                    ___ zfac levels___
xfact   yfact   z1   z2   ... zn
-------   -------   ----  ----   ... ----
x1      y1       r1   r2        rn
....

How can I go about this?

Thanks,
Matt

-- 
It is from the wellspring of our despair and the places that we are
broken that we come to repair the world.
-- Murray Waas



More information about the R-help mailing list