我有一个xls。包含以下信息的文件

我想从 R 列 D 和 E 中删除,当然 F 的数据向左移动。我怎么能在 R 中做到这一点?谢谢
Read the .xls file into R with one of the several packages (eg. xlsReadWrite:read.xls()), delete the columns :
data$Column <- NULL 
or 
data <- data[ ,-c(4,5)]
and then write the new data to a .xls file with one of the mentioned packages.
您可以将其转换为 csv 文件并使用read.csv函数将其加载到 R 中。然后,删除您想要的列并将其保存为write.csv.