Here is how you can apply the mat function mentioned by Cassardi,
x-c(1, 2, 1, 3, 2)
y-c(3, 1, 2, 3, 5)
mat-matrix(c(x,y),5,2) ##the first parameter gives the data vector
wich is filled columnwise in the matrix, then comes the row and column
dimensions)
colnames(mat)-c(x,y)
you can
is of type 3 ...) so as to fill up automatically the $Type column.
df()
$Source$Type
A23
A24
A9
A32
A25
A14
A10
A12
A11
A13
G
Alternative solutions are also welcome.
Thanks in advance
P.S. I found a discussion mentioning match() and %in% but it does not seem
adapted.
--
Nikola Markov
Inserm
2 matches
Mail list logo