0
嗨,我試圖加載,我從這個鏈接下載的數據集: https://docs.google.com/spreadsheet/ccc?key=0AkY2lFgS9uiDdDdxazdLMnUwalpyMjc0UlY1U2p4cnc#gid=0錯誤而R裝入數據集
我下載到這個位置Ç我的C盤:/ CDA驅動器popular.tsv
我正在嘗試將其讀入數據框。我同時使用源代碼和負載,並且在他們兩個中都出現錯誤。
>present=source("C://CDA//popular.tsv")
Error in source("C://CDA//popular.tsv") :
C://CDA//popular.tsv:1:9: unexpected symbol
1: gender grade
^
> present=load("C://CDA//popular.tsv")
Error: bad restore file magic number (file may be corrupted) -- no data loaded
In addition: Warning message:
file ‘popular.tsv’ has magic number 'gende'
Use of save versions prior to 2 is deprecated
>present=read.table("C://CDA//popular.tsv")
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
line 23 did not have 11 elements
請幫忙! 感謝
爲什麼使用'source'和'load'而不是'read.table'和family? – A5C1D2H2I1M1N2O1R2T1
present = read.table(「C://CDA//popular.tsv」) 錯誤掃描(文件,什麼,nmax,sep,dec,quote,skip,nlines,na.strings,: line 23 did沒有11個元素 – user1189851
嘗試'read.table(「C://CDA//popular.tsv」,header = TRUE,sep =「\ t」)' – alexwhan