java 文件读取 逗号分隔_如何用逗号(,)作为R中的分隔符读取csv文件

我正在尝试在R.中读取此csv文件 . (scores.csv)

ALVO,P,Prediction,fold

1,0.9079557994069131,"1",0

1,0.4323657303144317,"0",0

1,0.9944246408740756,"1",0

1,0.8025072441292207,"1",0

1,0.8687043760021418,"1",0

1,0.8728815023271057,"1",0

1,0.9998157504312343,"1",0

1,0.6610699528239422,"1",0

1,0.9994385364719802,"1",0

我试过这个:

result < - read.csv(“C:/scores.csv”,header = TRUE,sep =“,”,quote =“\”“)

AND 这个:

result < - read.csv(“C:/scores.csv”)

它不起作用,我得到P,预测,折叠NA值

头(结果)

but I got this:

ALVO P Prediction fold

1 1,0.9079557994069131,"1",0 NA NA NA

2 1,0.4323657303144317,"0",0 NA NA NA

3 1,0.9944246408740756,"1",0 NA NA NA

4 1,0.8025072441292207,"1",0 NA NA NA

5 1,0.8687043760021418,"1",0 NA NA NA

6 1,0.8728815023271057,"1",0 NA NA NA

有人已经这样做了吗?

请帮忙!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值