Trying to run a time series

forecast
#1

I am trying to run a time series and it will not recognize it

model_A <- tslm(CANADA~trend)
Error in tslm(CANADA ~ trend) : could not find function "tslm"

0 Likes

R studio tslm data
#2

You need to load the library first and specify the origin of your data

library(forecast)
model_A <- tslm(CANADA~trend, data = your_data_frame)

We don't really have enough info to help you any further. Could you ask this with a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.

0 Likes

#5

I will go to a different R community website that will actually help people out. thanks buddy for all your help.

0 Likes

#6

If you think that is best for you, go ahead and good luck!

If you decide that you want to help us help you, then you can just provide enough information for us understanding what your problem is and avoid the trash talk.

1 Like

unlisted #7
0 Likes

#9

https://community.rstudio.com/t/trying-to-run-a-time-series/24649/4

This kind of behavior is unwarranted and not tolerated here. If you seek help from other coding help communities I encourage you to approach them friendliness and respect.

1 Like

closed #10

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.

0 Likes