Skip to content
Prev 134374 / 398500 Next

Logical test and look up table

Here is one way of doing it using 'match'
+ A23  1
+ A24   2
+ A9    2
+ A32   H
+ A25   H1
+ A14   3
+ A10   4
+ A12   H1
+ A11   1
+ A13   4
+ G  h"), header=TRUE, as.is=TRUE)
Source Type
1     A10    4
2     A13    4
3     A10    4
4     A13    4
5     A32    H
6     A12   H1
7     A12   H1
8     A10    4
9     A24    2
10    A12   H1
11    A12   H1
12    A13    4
On Jan 19, 2008 8:57 PM, Nikola MARKOV <markov at lyon.inserm.fr> wrote: