下面是我尝试将数据集从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",