这个错误意味着你的R环境中没有安装和加载read.xlsx函数所在的包。

解决方法是安装和加载readxl包。可以使用以下代码安装和加载该包:

install.packages("readxl")
library(readxl)

然后,你就可以使用read_excel()函数来读取Excel文件了,替换你的代码中的read.xlsx()函数。

data <- read_excel("C:/Users/27773/Desktop/try.xlsx")
data-readxlsxCUsers27773DesktoptryxlsxError in readxlsxCUsers27773Desktoptryxlsx could not find function readxlsx什么意思和解决方式

原文地址: https://www.cveoy.top/t/topic/ivaG 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录