Extract and analyze univariate time series data from Open Spending API, using the ts.analysis function.

open_spending.ts(json_data,time,amount,order=NULL,prediction_steps=1)

Arguments

json_data

The json string, URL or file from Open Spending API

time

Specify the time label of the json time series data

amount

Specify the amount label of the json time series data

order

An integer vector of length 3 specifying the order of the Arima model

prediction_steps

The number of prediction steps

Value

A json string with the resulted parameters of the ts.analysis function.

Details

This function extracts the time series data provided by the Open Spending API, in order to return the results from the ts.analysis function.

See also

ts.analysis