knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

library(strayr)

strayr

Lifecycle:
experimental R build
status

The strayr package provides tools to make working with Australian data easier. This includes:

This package is currently in development and subject to change. The lifecycle badge will be changed to stable when it is stable (should be relatively soon).

Contribute to this package: people are actively encouraged to contribute to this package.

Installation

You can install the current version of strayr with:

remotes::install_github("runapp-aus/strayr")

Structures

Current structures stored in strayr are:

Converting state names and abbreviations

The clean_state() function makes it easy to wrangle vectors of State names and abbreviations - which might be in different forms and possibly misspelled.

Australian public holidays

This package includes the auholidays dataset from the Australian Public Holidays Dates Machine Readable Dataset as well as a helper function is_holiday.

Australian school terms

This package includes a dataset with the start and end dates of school terms in each Australian state and territory from 1978 to 2024:

school_terms

Parsing income ranges

The parse_income_range function provides some tools for extracting numbers from income ranges commonly used in Australian data. For example:

parse_income_range("$1-$199 ($1-$10,399)", limit = "lower")

Accessing ABS mapping structures

The strayr package also provides tools to access sf objects contained in absmapsdata. See ?strayr::read_absmap for more information.

read_absmap("sa42021")


runapp-aus/strayr documentation built on Oct. 15, 2024, 2:19 p.m.