Skip to content

Latest commit

 

History

History
115 lines (99 loc) · 5.93 KB

README.md

File metadata and controls

115 lines (99 loc) · 5.93 KB

abscorr

Lifecycle: experimental R build status

The abscorr package provides tidy versions of common structures used by the Australian Bureau of Statistics (ABS).

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

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

Current structures stored in abscorr are:

Installation

You can install the current version of abscorr with:

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

Example

This is a basic example which shows you how to solve a common problem:

library(abscorr)
library(dplyr, warn.conflicts = FALSE)

glimpse(anzsco)
#> Rows: 1,180
#> Columns: 16
#> $ anzsco1_code <chr> "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "…
#> $ anzsco1      <chr> "Managers", "Managers", "Managers", "Managers", "Manager…
#> $ anzsco1_f    <fct> Managers, Managers, Managers, Managers, Managers, Manage…
#> $ anzsco2_code <chr> "10", "11", "11", "11", "11", "11", "11", "11", "11", "1…
#> $ anzsco2      <chr> "Managers, nfd", "Chief Executives, General Managers and…
#> $ anzsco2_f    <fct> "Managers, nfd", "Chief Executives, General Managers and…
#> $ anzsco3_code <chr> "100", "110", "111", "111", "111", "111", "111", "111", …
#> $ anzsco3      <chr> "Managers, nfd", "Chief Executives, General Managers and…
#> $ anzsco3_f    <fct> "Managers, nfd", "Chief Executives, General Managers and…
#> $ anzsco4_code <chr> "1000", "1100", "1110", "1111", "1112", "1112", "1113", …
#> $ anzsco4      <chr> "Managers, nfd", "Chief Executives, General Managers and…
#> $ anzsco4_f    <fct> "Managers, nfd", "Chief Executives, General Managers and…
#> $ anzsco6_code <chr> "100000", "110000", "111000", "111111", "111211", "11121…
#> $ anzsco6      <chr> "Managers, nfd", "Chief Executives, General Managers and…
#> $ anzsco6_f    <fct> "Managers, nfd", "Chief Executives, General Managers and…
#> $ skill_level  <fct> NA, NA, NA, 1, 1, 1, 1, 1, 1, NA, NA, 1, 1, 1, 1, 1, 1, …
glimpse(anzsic)
#> Rows: 506
#> Columns: 12
#> $ anzsic_division_code    <chr> "A", "A", "A", "A", "A", "A", "A", "A", "A", …
#> $ anzsic_division         <chr> "Agriculture, Forestry and Fishing", "Agricul…
#> $ anzsic_subdivision_code <chr> "1", "1", "1", "1", "1", "1", "1", "1", "1", …
#> $ anzsic_subdivision      <chr> "Agriculture", "Agriculture", "Agriculture", …
#> $ anzsic_group_code       <chr> "11", "11", "11", "11", "11", "12", "12", "12…
#> $ anzsic_group            <chr> "Nursery and Floriculture Production", "Nurse…
#> $ anzsic_class_code       <chr> "111", "112", "113", "114", "115", "121", "12…
#> $ anzsic_class            <chr> "Nursery Production (Under Cover)", "Nursery …
#> $ anzsic_division_f       <fct> "Agriculture, Forestry and Fishing", "Agricul…
#> $ anzsic_subdivision_f    <fct> Agriculture, Agriculture, Agriculture, Agricu…
#> $ anzsic_group_f          <fct> "Nursery and Floriculture Production", "Nurse…
#> $ anzsic_class_f          <fct> Nursery Production (Under Cover), Nursery Pro…
glimpse(asced_foe)
#> Rows: 439
#> Columns: 9
#> $ foe2_code <chr> "01", "01", "01", "01", "01", "01", "01", "01", "01", "01",…
#> $ foe2      <chr> "Natural and Physical Sciences", "Natural and Physical Scie…
#> $ foe2_f    <fct> Natural and Physical Sciences, Natural and Physical Science…
#> $ foe4_code <chr> "0100", "0101", "0101", "0101", "0101", "0103", "0103", "01…
#> $ foe4      <chr> "Natural and Physical Sciences, nfd", "Mathematical Science…
#> $ foe4_f    <fct> "Natural and Physical Sciences, nfd", "Mathematical Science…
#> $ foe6_code <chr> "010000", "010100", "010101", "010103", "010199", "010300",…
#> $ foe6      <chr> "Natural and Physical Sciences, nfd", "Mathematical Science…
#> $ foe6_f    <fct> "Natural and Physical Sciences, nfd", "Mathematical Science…
glimpse(asced_qual)
#> Rows: 64
#> Columns: 9
#> $ qual1_code <chr> "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "2"…
#> $ qual1      <chr> "Postgraduate Degree Level", "Postgraduate Degree Level", …
#> $ qual1_f    <fct> Postgraduate Degree Level, Postgraduate Degree Level, Post…
#> $ qual2_code <chr> "11", "11", "11", "11", "11", "11", "12", "12", "12", "12"…
#> $ qual2      <chr> "Doctoral Degree Level", "Doctoral Degree Level", "Doctora…
#> $ qual2_f    <fct> Doctoral Degree Level, Doctoral Degree Level, Doctoral Deg…
#> $ qual3_code <chr> "111", "112", "113", "114", "115", "116", "121", "122", "1…
#> $ qual3      <chr> "Higher Doctorate", "Doctorate by Research", "Doctorate by…
#> $ qual3_f    <fct> Higher Doctorate, Doctorate by Research, Doctorate by Cour…