一种解决方案是将文件作为字符串读取并用换行符替换分号。
fileName = 'myfile.txt'
filecontent = readChar(fileName, file.info(fileName)$size)
filecontent = gsub(";", "\n", filecontent)
con = textConnection(filecontent)
read.table(con,sep=",")
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3281 次 |
| 最近记录: |