【发布时间】:2020-05-25 12:16:05
【问题描述】:
我正在使用Blogdown 创建新帖子,但在尝试预览时出现以下错误。
该代码在我的 Rmarkdown 文件中运行良好,但我无法将其更新到我的博客。有谁知道问题出在哪里?
从第 36-47 行退出 UseMethod("select_") 中的错误: 没有适用于“函数”类对象的“select_”方法 调用:local ... freduce -> -> select -> select.default -> select_ 执行停止
这是我在第 36-47 行的代码;
library(corrplot)
library(RColorBrewer)
library(tidyverse)
corrplot(cor(df %>% select(Sales, Customers, Store,
Open, SchoolHoliday,
DayOfWeek, month, year,
CompetitionDistance,
Promo, Promo2_active) %>%
filter(!is.na(Sales), !is.na(CompetitionDistance))),
type="upper", order="original",
col=brewer.pal(n=8, name="RdYlBu"))
非常感谢。
【问题讨论】: