简体   繁体   English

无法读取R中的Excel工作表表格

[英]Can not read the tables of excel sheets in R

警告消息:在read.table(“ my_data.xls”中,标头= T,sep =“;”):readTableHeader在“ my_data.xls”上发现不完整的最后一行

> read.table("my_data.xls", header = T, sep = ";")

I would suggest use the readxl package. 我建议使用readxl软件包。 Not sure about the use of ";" 不确定是否使用“;” as separator. 作为分隔符。

library(readxl)
df <- read_excel( "my_data.xls", col_names = TRUE )

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM