-
Notifications
You must be signed in to change notification settings - Fork 15
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
Comments
I love this idea. Should work so long as there's no duplicates, right? |
What do you mean duplicates? Some classifications exist at multiple levels, e.g. Probably easily done in parallel with #50 so you can just filter? |
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? |
I think the underlying data would look like this. What do you think the function should return?
|
Perhaps a character vector ordered finest level to broadest. That way you would always know what the position in the vector means. |
There is an issue where the ANZSCO6 is singular, but other levels are plural... |
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 returnSub-Major Group
The text was updated successfully, but these errors were encountered: