Entering edit mode
8.0 years ago
Parham
★
1.6k
Hi, I want to make a data table that I have, to something that is more comprehensive. In abstract this is what I intend to do:
> df
cond_1 cond_2 cond_3 cond_4
1 a a b e
2 b b c f
3 <NA> c d g
> df_t
cond_1 cond_2 cond_3 cond_4
a + + - -
b + + + -
c - + + -
d - - + -
e - - - +
f - - - +
g - - - +
Is there any package or function that can do the job or facilitate coding? Any suggestion is a big help!
Thank you all for your great and instructive solutions!