回复 第4楼 的 谢益辉:好的 。
第一台电脑我还以为是版本问题,卸载后,刚装的R,还是以下问题:
##########################################################
a_1=read.csv("shiyan.csv")
错误于make.names(col.names, unique = TRUE) : 多字节字符串1有错
此外: 警告信息:
In read.table(file = file, header = header, sep = sep, quote = quote, :
readTableHeader在读取'shiyan.csv'时遇到了不完全的最后一行
> count.fields("shiyan.csv")
[1] 1
> sessionInfo()
R version 2.12.1 (2010-12-16)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_2.12.1
>
################################################################
第二台电脑也有问题:
> data1 = read.csv("shiyan.csv")
错误于make.names(col.names, unique = TRUE) : 多字节字符串1有错
此外: 警告信息:
In read.table(file = file, header = header, sep = sep, quote = quote, :
readTableHeader在读取'shiyan.csv'时遇到了不完全的最后一行
> sessionInfo()
R version 2.12.0 (2010-10-15)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=Chinese_People's Republic of China.936
[2] LC_CTYPE=Chinese_People's Republic of China.936
[3] LC_MONETARY=Chinese_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese_People's Republic of China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_2.12.0
>
#############################################################
第三台电脑上原来没有问题,但现在又有问题了:
3.1:有问题
data1= read.csv("shiyan.csv")
错误于make.names(col.names, unique = TRUE) : 多字节字符串1有错
此外: 警告信息:
In read.table(file = file, header = header, sep = sep, quote = quote, :
readTableHeader在读取'yanchaangjun.csv'时遇到了不完全的最后一行
> sessionInfo()
R version 2.11.1 (2010-05-31)
i386-pc-mingw32
locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
>
########################
3.2:没问题
这里数据前几天是可以读的,并且没有上面错误。其中
数据"shiyan.csv"和"data.csv"是一致的,都是109*2列的数据
> da2= read.csv("data.csv")
> sessionInfo()
R version 2.11.1 (2010-05-31)
i386-pc-mingw32
locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
>
##################################################################
我都无语了!