× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Split string lines and make a data frame

Utkarsh Upadhyay
Apr 16, 2015
<p>You can disable the treatment of <code>#</code> as the <code>comment.char</code> in <code>read.table</code>:</p> <pre><code>read.table(text=files, sep='\t', comment.char="") # V1 V2 V3 V4 # 1 rfinal # 2 eq1 # 3 0.ster6 1.00 (1.00,1.00) . # 4 1.ster6 0.65 (0.47,0.88) 0.006 # 5 0.parkinson 1.00 (1.00,1.00) . # 6 1.ster6#0.parkinson 1.00 (1.00,1.00) . </code></pre> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/27815966/Split%20string%20lines%20and%20make%20a%20data%20frame/27816052">Stack Overflow</a>.</p>

Get New Tutorials Delivered to Your Inbox

New tutorials will be sent to your Inbox once a week.

comments powered by Disqus