Linked Questions

Popular Questions

Import Text file in R

Asked by At

I have a data in a text file. I have a problem importing it to R. The example of the text file looks like this :

holes:1 must:1 top_secret:1 he:1 center:1 other_civilans:1 the_pacific:1 the_navy:1 a_lot:1 surface_must:1 this_book:1 man_named:1 _feet:2

There are many lines of data like the above. It would be great if anyone could help me in solving this!!

Thanks in advance!!

I want the file to be read in two columns like

holes        1  
must         1
top_secret   1

Related Questions