Hi, dear R users. I've a kind of stupid question, I hope you can provide some help! The topic here's really simple: vectors and matrices. I have a matrix (616 rows x 22 cols) filled with numbers and NAs; something like this:
1 2 3 4 5 6 NA NA NA NA ........ 1 2 3 4 NA NA NA NA NA ......... .................................................. ................................................ What I'm trying to do is to put all the rows on a unique row, so to have something like this: 1 2 3 4 5 6 NA NA NA NA ........1 2 3 4 NA NA NA NA NA ......... and so on. The matter is that whatever I try, I just get something like this: 1 1 1 1 1 1 1 1 .........................2 2 2 2 2 2 2 2 2 ...... Obviously, this is not what required. I've tried to concatenate, I've built a for cicle, but nothing seems to produce what I want. Sorry for the dumb question, but I'm almost sure I need holidays... Thanks in advance! niccolò [[alternative HTML version deleted]]
______________________________________________ R-help@stat.math.ethz.ch 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.