I am new to R. I encountered an error when I wanted to use the auto.arima
function. The message was:
could not find function "auto.arima"
I've installed the forecast
package. I'm using R2.14.1 version and forecast 3.16 in windows 7 operating system. What can I do?
If I could use the auto.arima
function in R and get the best result model, I want to call the auto.arima
method in my Java project. How would I use the R library in java project?
As the others pointed out: You have downloaded the package with install.packages()
or from the menu but you did not load the package. This is done by library(forecast)
or require(forecast)
. You can obtain single functions as well with the command: package::function()
just like: forecast::auto.arima()
. So much for a little clarification. If you need a graphical user interface (it makes life easier) check out Rstudio Rstudio or R commander install.packages(Rcmdr)
or rJava proposed by Zach.
library(forecast)
安装时,请确保标记“安装依赖项”选项。
To use the auto.arima package, you need to install the package "quadprog". Install that package first and put forecast into library and you should be ok
You need to do the following steps
install.packages("xts")
install.packages("forecast", dependencies = TRUE)
library(forecast)
This worked for me.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.