[R] Data import

Polona Razpotnik pokapika at hotmail.com
Thu Oct 17 15:20:44 CEST 2002


I have a question regarding data import.
My data are in txt file in two long columns looking like this:

1       a
2       b
3       c
4       d
1       e
2       f
3       g
4       h
1       i
2       j
3       k
4       l     etc.

I would like to have them in the table looking like this (after importing 
them to R):

      D1    D2    D3
1    a       e       i
2    b       f       j
3    c       g       k
4    d       h      l

Can this be achieved directly from the txt file or do I have to rearrange 

Thank you very much for any help!
Polona (a newcomer in the world of R)

Get faster connections -- switch to MSN Internet Access! 

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list