Skip to contents

Return the most recent (current) value for an indicator

Usage

current(data, filter_with, print = TRUE)

Arguments

data

a dataframe of cleaned ABS Time Series data returned from readabs

filter_with

a list of variables to filter the dataframe on. Valid variables include gender, age, indicator, and series type.

print

logical. If TRUE (default) current() returns a string. Specify FALSE to return a number.

Value

String if print == TRUE. Number if print == FALSE

Examples

library(reportabs)
labour_force_briefing <- read_absdata("labour_force_briefing")
#> Reading labour_force_briefing file found in /tmp/RtmpBrGMvV
current(labour_force_briefing, list(indicator = "Employed total",
series_type = "Seasonally Adjusted"))
#> [1] "14.62 million"