Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function to return the level of a classification? #69

Open
daviddiviny opened this issue Oct 28, 2021 · 6 comments
Open

Add function to return the level of a classification? #69

daviddiviny opened this issue Oct 28, 2021 · 6 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@daviddiviny
Copy link
Collaborator

I was thinking that for example, this function would return the highest level (or all levels) for which a classification of an occupation exists.

For example:
find_anzsco_level("Chief Executives, General Managers and Legislators") would return Sub-Major Group

@daviddiviny daviddiviny added enhancement New feature or request good first issue Good for newcomers labels Oct 28, 2021
@MattCowgill
Copy link
Collaborator

I love this idea. Should work so long as there's no duplicates, right?

@daviddiviny
Copy link
Collaborator Author

What do you mean duplicates? Some classifications exist at multiple levels, e.g. Chief Executives, General Managers and Legislators but I think it should return the highest level by default, with an option to return all levels?

Probably easily done in parallel with #50 so you can just filter?

@MattCowgill
Copy link
Collaborator

Yep that's what I meant, classifications that exist at multiple levels. Returning the highest level by default makes sense... maybe with a message to inform the user that there are multiple matching levels?

@daviddiviny
Copy link
Collaborator Author

I think the underlying data would look like this. What do you think the function should return?

code occupation level
1 Managers Major Group
2 Professionals Major Group
3 Technicians And Trades Workers Major Group
4 Community And Personal Service Workers Major Group
5 Clerical And Administrative Workers Major Group
6 Sales Workers Major Group

@mrjoh3
Copy link
Collaborator

mrjoh3 commented Oct 29, 2021

Perhaps a character vector ordered finest level to broadest. That way you would always know what the position in the vector means.

@daviddiviny
Copy link
Collaborator Author

There is an issue where the ANZSCO6 is singular, but other levels are plural...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants