[R] Data import

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


Hello!

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

D1
1       a
2       b
3       c
4       d
D2
1       e
2       f
3       g
4       h
D3
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 
it?

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