Displaying 2 results from an estimated 2 matches for "diag1".
Did you mean:
diag
2012 Nov 06
1
pivot table
Hello,
I have a data which looks like below: Some of the patients have multiple diagnosis.
ID(200 patients) Diag (100 unique Diag-200 in general) Proc (50 uniqe Proc) DOB (200) Gender (200)
a daig1
b diag2
c diag1
I want to reformat this data to :
ID diag1 diag 2 diag 3.. diagx proc1 proc2 proc3... procx DOB Gender
a1011 20F
Thanks a lot for your help and time.
Best,Farnoosh Sheikhi
[[alternative HTML version deleted]]
2009 Jan 22
1
melt stumbles over deleted columns
...on. I
deleted the variable column and tried to melt the resulting data frame.
Depending on which method I use to delete the column I get different
error messages when melting:
> head(tinfos)
vpn group trial_no item relation trial_type rt variable #
1 102 2 1 4351 diag1 distractor 8471 fix_d 27
2 102 2 2 1214 id target 4072 fix_d 17
3 102 2 3 4213 diag1 distractor 7040 fix_d 27
4 102 2 4 1314 id target 4370 fix_d 15
5 102 2 5 2655 vert distractor 4397 fix_d 17...