0
我目前有一个txt文件,其中包含前10行后跟逗号分隔值的说明。我想在R中读取这个文件,但是我不确定如何,因为基本上有两部分到不同结构的文件。阅读前10行中有评论的文件
我目前在Python中预处理文件,但想知道是否有办法避免这种情况,只有在R?
样本:
This is a row containing instructions
Here is another one
More instructions
date,dollar_amount,zip_code
2014-10-01,43.33,
2014-10-01,42.00,94612
编辑: 我不会介意如何做到这一点在Python如果在Python做整个事情是更好的建议。