here에서 설명하는 것과 동일한 문제가 있습니다. 유일한 차이점은 CSV 파일에 non_english 문자열이 포함되어있어 어떤 솔루션도 찾을 수 없다는 것입니다. CSV 파일을 읽을 때 를 인코딩하는 것은 나에게 오류를 제공하지 않습니다하지만 데이터가 변경 :읽기 csv + unicode R
network=read.csv("graph1.csv",header=TRUE)
اشپیل(60*4)
내가 fileEncoding
으로 read.csv
을 실행하면 그것은 나에게이 오류 제공 :
network=read.csv("graph1.csv",fileEncoding="UTF-8",header=TRUE)
Warning messages:
1: In read.table(file = file, header = header, sep = sep, quote = quote, :
invalid input found on input connection 'graph1.csv'
2: In read.table(file = file, header = header, sep = sep, quote = quote, :
incomplete final line found by readTableHeader on 'graph1.csv'
network[1]
[1] X.
<0 rows> (or 0-length row.names)
시스템 정보 :
을 16,windows server 2008
R:R3.1.2
샘플 파일 : 나는 당신의 입력을 시도
node1,node2,weight
ورق800*750*6,ورق 1350*1230*6mm,0.600000024
ورق900*1200*6,ورق 1350*1230*6mm,0.600000024
ورق76*173,ورق 1350*1230*6mm,0.600000024
ورق76*345,ورق 1350*1230*6mm,0.600000024
ورق800*200*4,ورق 1350*1230*6mm,0.600000024
의 중복 가능성 http://stackoverflow.com/questions/28005632/columns-names-not-read-properly- by-read-csv-in-r) –
전체 파일이 올바르게 읽히지 않는 열 이름이 아닙니다. –
두 번째 경고는 잊어 버린 캐리지 리턴으로 인해 내 대답에 따라 해결되어야합니다.그것은 가치가 무엇인지에 대한 –