I am not sure which chunk of code to give you for this particular error. However, I need to finish this report, and any help would be greatly appreciated.
The error is as follows:
Error in eval(expr, envir, enclos) : object 'Trends' not found
Calls: ... handle -> withCallingHandlers -> withVisible -> eval -> eval