You can, of course, conduct formal tests, such as the ADF test, but I would suggest conducting “unofficial” tests of stationarity as a first step.
Checking visual data with plot() will help you determine if the data is motionless.
The next step will be to investigate the autocorrelation function and the partial autocorrelation function of the data. You can do this by calling the acf() and pacf() functions. This will not only help you decide whether the data will be stationary, but it will also help you identify preliminary ARIMA models that can then be evaluated and used to predict if they will be understood after the necessary diagnostic tests have been completed.
You must, indeed, be careful that the data you provide contains only 30 observations. This falls below the practical minimum level of about 50 observations required for forecasting using ARIMA models.
If that helps, a moment after I built the data, I'm pretty sure that the data was probably still. The acf and pacf estimates seem to support this view. Sometimes such unofficial tests are enough.
This little-book-of-r-for-time-series can help you further.
source share