I just create a plot and I am trying to display the trend of the ts, but it gives me an error.
Department_sales_df <- read.csv("DepartmentStoreSales.csv")
Department_sales_ts <- ts(data = Department_sales_df$Sales,
start = c(2000, 1), end = c(2005, 4), frequency = 4)
plot(Department_sales_ts, xlab = "Year", ylab = "Sales", main = "Store Sales",
ylim = c(45000, 105000))
trend_benchmark <- ma(Department_sales_ts, order = 4, centre = TRUE)
Error in ma(Department_sales_ts, order = 4, centre = TRUE) : could not find function "ma"