Re: [R] Advice needed on awkward tables

2010-05-10 Thread Greg Orm
Apologies. Let me clarify. I have included my code below : data.table.b represents the medical nomenclature, whereas data.table.a is a patient derived database. data.table.b$CATEGORY categorizes features (e.g. 'cardiac', 'respiratory'), whereas data.table.b$FEATURE is a corresponding disease (e.g

[R] Advice needed on awkward tables

2010-05-10 Thread Greg Orm
Dear r-help list members, I am quite new to R, and hope to seek advice from you about a problem I have been cracking my head over. Apologies if this seems like a simple problem. I have essentially two tables. The first (Table A) is a standard patient clinicopathological data table, where rows cor