0
我想在R中導入數據,它出現一個錯誤「列數多於列名」。我想知道是否有人能幫助我做出正確的命令。數據的一部分是低於,您可以複製它,並在記事本導入數據 - 列名比列名多
name yr1 yr2 state party bday
Joseph Carter Abbott 1868 1872 North Carolina Republican July 15, 1825
James Abdnor 1981 1987 South Dakota Republican February 13, 1923
Hazel Abel 1954 1954 Nebraska Republican July 10, 1888
James Abourezk 1973 1979 South Dakota Democrat February 24, 1931
Spencer Abraham 1995 2001 Michigan Republican June 12, 1952
John Adair 1805 1806 Kentucky Democratic-Republican January 9, 1757
Alva B. Adams 1923 1924 Colorado Democrat October 29, 1875
Alva B. Adams 1933 1941 Colorado Democrat October 29, 1875
Brock Adams 1987 1993 Washington Democrat January 13, 1927
John Quincy Adams 1803 1808 Massachusetts Federalist July 11, 1767
Robert H. Adams 1830 1830 Mississippi Democrat 1792
Stephen Adams 1852 1857 Mississippi Democrat October 17, 1807
George D. Aiken 1941 1975 Vermont Republican August 20, 1892
James L. Alcorn 1871 1877 Mississippi Republican November 4, 1816
Nelson W. Aldrich 1881 1911 Rhode Island Republican November 6, 1841
Russell A. Alger 1902 1907 Michigan Republican February 27, 1836
J. Frank Allee 1903 1907 Delaware Republican December 2, 1857
George Allen 2001 2007 Virginia Republican March 8, 1952
Henry Justin Allen 1929 1930 Kansas Republican September 11, 1868
James Allen 1969 1978 Alabama Democrat December 28, 1912
John B. Allen 1889 1893 Washington Republican May 18, 1845
數據集中沒有分隔符嗎?它是一個純文本文件,可能是固定的寬度?很多格式化會丟失,因爲您在這裏粘貼數據的方式很困難,所以很難說可能的解決方案是什麼。 – A5C1D2H2I1M1N2O1R2T1 2014-11-05 17:19:06