Hi R-users,
I have a data set like this (first ten rows):
id patient_id date code class eala ID1564262 1562 6.4.2006 12:00 1
NA ID1564262 1562 6.4.2006 12:00 1 NA ID1564264 1365 14.2.2006 14:35
1 50 ID1564265 1342 7.4.2006 14:30 2 50 ID1564266 1648 7.4.200614:30
2 50
Haven't quite learned to 'cast' yet, but I have always used the 'apply'
functions for this type of processing:
x - id patient_id date code class eala
+ ID1564262 1562 6.4.200612:00 1 NA
+ ID1564262 1562 6.4.200612:00 1 NA
+ ID1564264 1365 14.2.200614:35 1 50
+
Haven't quite learned to 'cast' yet, but I have always used the 'apply'
functions for this type of processing:
x - id patient_id date code class eala
+ ID1564262 1562 6.4.200612:00 1 NA
+ ID1564262 1562 6.4.200612:00 1 NA
+ ID1564264 1365 14.2.200614:35 1 50
+
Thanks guys! Jim got it right what I was looking for. I think that the
reason why I don't get this right with cast-function is that I don't know
how to write a proper stats-function. SQL is still much easier for me.
Lauri
2007/2/20, hadley wickham [EMAIL PROTECTED]:
Haven't quite learned to