I have been trying to use the pyRserve for time series' forecasting and intent to use R's auto.arima function.
Used the following code to solve the problem of functions with a dot in their names such as auto.arima:
conn.r.List = aList
auto_arima = getattr(conn.r, 'auto.arima')
conn.r.sapply(conn.ref.List, auto_arima)
but, it returned this error:
Traceback (most recent call last):
File "D:/Forecast/Python/R2Python/R2P_Practice.py", line 21, in <module>
auto_arima = getattr(conn.r, 'auto.arima')
File "C:\Python27\lib\site-packages\pyRserve\rconn.py", line 308, in __getattr__
'defined in Rserve' % realname)
NameError: no such variable or function "auto.arima" defined in Rserve
It seems the auto.arima is not defined in Rserve. Does anyone have a solution for that?
Thanks,
Mike