Try to export my data.frame to 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")
)
But after running it, I receive this error:
Ошибка в as.data.frame.default(x[[i]], optional = TRUE) : cannot coerce class ‘"function"’ to a data.frame
I don't understand where the problem is