【发布时间】:2020-10-02 16:56:27
【问题描述】:
尝试将我的 data.frame 导出到 csv
google_analytics(214199202,
date_range = c("2020-05-27", "2020-06-11"),
metrics = c("ga:transactions","ga:transactionRevenue"),
dimensions = c("ga:date","ga:campaign","ga:sourceMedium"),
filtersExpression = "ga:sourceMedium=~(yandex / cpc|google / cpc)",
write.csv(google_analytics, file = "filename.csv")
)
但是运行之后,我收到这个错误:
Ошибка в as.data.frame.default(x[[i]], optional = TRUE) : 不能将类“函数”强制转换为 data.frame
我不明白问题出在哪里
【问题讨论】:
标签: r