(2)加载数据时出错;嵌入式null / 0行1列

时间:2018-12-07 17:39:00

标签: r csv file-transfer opencsv

下面是我尝试将数据集从excel传输到R时收到的两条消息。第一个错误是我尝试以excel文件格式传输,第二个错误是我另存为CSV,然后尝试传输。我没有经验,请帮忙。

> Datacleanxxl <-  
+   read.table("C:/Users/william/OneDrive - Syracuse University/CleanDataXXL.xlsx",  
+    header=TRUE, sep=",", na.strings="NA", dec=".", strip.white=TRUE)  
- - - - - - - - -  - - - - - - - - - - - - - - - - - - - - - - - - - - -- -  
[4] WARNING: Warning in read.table("C:/Users/william/OneDrive - Syracuse University/CleanDataXXL.xlsx", :  
line 1 appears to contain embedded nulls  
Warning in read.table("C:/Users/william/OneDrive - Syracuse University/CleanDataXXL.xlsx", :  
incomplete final line found by readTableHeader on 'C:/Users/william/OneDrive - Syracuse University/CleanDataXXL.xlsx'  
[5] NOTE: The dataset Datacleanxxl has 0 rows and 1 columns.  

 DatacleanCSV <-   
+   read.table("C:/Users/william/OneDrive - Syracuse University/CleanDataCSV.csv",  
+    header=TRUE, sep=",", na.strings="NA", dec=".", strip.white=TRUE)   
--------------------------------------------------------  
[3] ERROR: /Users/william/OneDrive - Syracuse
University/CleanDataCSV.csv",

0 个答案:

没有答案