get_ausmacrodata returns a time series data set from ausmacrodata.org.

get_ausmacrodata(dataset, format, ...)

Arguments

dataset

a URL for a specific data set on ausmacrodata.org, or an id for a data set.

format

The desired format for the object to be returned. Possible values are ts, xts and tibble. By default a ts object is returned for quarterly, monthly or annual data, and an xts object is returned for daily data.

...

Other arguments, not currently used.

Examples

# Read quarterly Australia GDP using full URL y <- get_ausmacrodata("http://ausmacrodata.org/series.php?id=gdpcknaasaq")
#> Parsed with column specification: #> cols( #> date = col_character(), #> value = col_integer(), #> vard = col_character(), #> vardd = col_character() #> )
#> Warning: 1 parsing failure. #> row col expected actual file #> 3 -- 4 columns 5 columns 'http://ausmacrodata.org/Data/5206.0/gdpcknaasaq.csv'
plot(y)
# Read daily cash rate target interest rate using only series ID z <- get_ausmacrodata('crtdoirymmdir')
#> Parsed with column specification: #> cols( #> date = col_character(), #> value = col_double(), #> vard = col_character(), #> vardd = col_character() #> )
library(xts) plot(z)