I continue to get this error while trying to create an R visual.
Error in eval(m$data, parent.frame()) : object 'Email_Activity' not found
Calls: aggregate -> aggregate.formula -> eval -> eval
Execution halted
Here is the top of my code:
library(data.table)
library(stringr)
library(tidyverse)
library(scales)
library(ggthemes)
Mess_Tot = aggregate(cbind(Sent,Opened,Clicked) ~ Message.Title , data = Email_Activity , sum)
I am very experienced in R. My code works fine in R. My dataset in Power BI is named Email_Activity. What am I doing wrong here?
All help is greatly appreciated.