Displaying 2 results from an estimated 2 matches for "p_f".
Did you mean:
_f
2006 Jun 26
2
reshaping data.frame question
....3
7 3 0 0.1
8 3 1 0.2
9 3 2 0.3
10 4 0 0.1
11 4 1 0.2
12 4 2 0.3
which tabulates some values p(X) for several factors f.
Now I want to put it in "wide" format, so that factor levels appear as
column heads. Note also that X starts from zero. It would be nice if I
could simply access p_f[X==0] as f[0]. How can I possibly do that?
(The resilting object does not have to be a data.frame. As there are
only numeric values, also a matrix would do.)
I tried the following
y<-unstack(x,form=p~f)
row.names(y) <- 0:2
y
X1 X2 X3 X4
0 0.1 0.1 0.1 0.1
1 0.2 0.2 0.2 0.2
2 0.3 0.3 0...
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
...at 3jZPsUtX%Buo}SAWWJzzsk|mxSkTE9qcik!WNm)Q{WEo`M=2&3
z^OW<>(S<oQ3RKA~T`sQ)whq1~CH)w5LJzD><wHG9-3J*=nh$0}Wd6R?C^st`+EZuB
z6`&W!4=bfUsHLTifKuAHFn(ug6Kj=}e>FziLej*di<H<xDfE_jU#`U7l5(%G<Aj)Z
z;>5gwxX@@RI7TWN0|jxkWZ_ at SXo6e)WHCI&=UQ%^v`6dzN=70vO>AyWopy9S_xp_f
zT~l1^hI~UI5cEx(piwfzdU+ at lBtmK3AEj4QQ0~Zo8&QQOY7JE=l=@|<mUI-qq at z^+
z4HT)i&9mIA at 6tvT+rzHa+yJQpjgk=^8Q8o!@8>e!zs-0*pYeWy-tW_>IiOB7CXIK6
z9?>Jb*~GfK%T?T4s5hsxZiTFacP0d>=xn{@PKlZngqma!+EG_$#TD~AZkOYtTaLgy
zE?e7W|4h!}H<TKLQ|I8s^-LT@^w#Z&vP&cSG#Ej>nVY+4+C-nu6...