On Nov 22, 2010, at 5:36 PM, M.Ribeiro wrote:
Hi Guys.
I have a matrix which has names in every other column and the other
one is
empity ("")
example
X10000 X10001 X10002
[1,] "A" "G" "A" "G" "G"
[2,] "G" "G" "A" "G" "A"
[3,] "G" "G" "A" "A" "A"
[4,] "G" "G" "A" "A" "A"
[5,] "A" "G" "A" "A" "A"
I am creating another matrix
How?
(I called here subset) which cbinds information
from another matrix (not shown) and a subset of this example matrix
above
Off hand, I would guess that this "other matrix", of undescribed
structure, is really a dataframe and you are actually calling
cbind.data.frame
(let's say column 1 and 2) and save as .prn file
subset
Sequence family clone female male X10000 V2 X10001 V4
1 40003 400 540003 10005 22055 A G A G
2 40011 400 540011 10005 22055 G G A G
3 40014 400 540014 10005 22055 G G A A
4 40042 400 540042 10005 22055 G G A A
5 40057 400 540057 10005 22055 A G A A
Everytime I do it, it creates a column name ("V2" and "V4" in bold)
where it
should be empty ("").
That's why I asked "How?"
Do you guys have any clue on how
Exactly. ............. How? You show us your "how" and we will show
you ours.
to to this?
Thanks
David Winsemius, MD
West Hartford, CT
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.