All the solutions presented work, but, gosh,
why not fix the source file in the first place?

One way: Open the text file in Excel or a clone thereof, and tell the importer dialog box to use both tabs and commas as delimiters. Then save the result, which will have your 'third column' nicely split into separate sets of data.

Actually, I would recommend going back to whatever (stupid incompetent) tool produced that file full of inconsistent delimiters and fixed the problem at the source.


Carl

______________________________________________
R-help@r-project.org 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.

Reply via email to