runapp-aus / strayr

A catalogue of ready-to-use ABS coding structures. Package documentation can be found here: https://runapp-aus.github.io/strayr/
45 stars 14 forks source link

Add clean_anzsco and clean_anzsic functionality #32

Closed daviddiviny closed 3 years ago

daviddiviny commented 3 years ago

This should be working now and has some tests.

In addition to the exported functions of clean_anzsco and clean_anzsic there are two helper functions clean_titles and make_dictionary that should make it relatively easy to create new cleaning functions.

wfmackey commented 3 years ago

This is great, David. Well done! Happy with this as it is.

Adding to this later, it could be worth allowing the user to specify a level -- eg clean_anzsco(x, level = "Major") -- to minimise risk of accidental matching when fuzzy_match = TRUE.