-
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
Seifa 2021 #105
Seifa 2021 #105
Conversation
@peteowen1 given SA codes are stored as characters in |
e.g. desired behaviour of: get_seifa(structure = c("lga"),
data_subclass = c("ieo"),
year = NULL) %>%
dplyr::select(1:4) %>%
dplyr::glimpse()
Rows: 548
Columns: 4
$ data_subclass <chr> "ieo", "ieo", "ieo", "ieo", "ieo", "ieo", "ieo", "ieo", …
$ structure <chr> "lga", "lga", "lga", "lga", "lga", "lga", "lga", "lga", …
$ area_code <chr> "10050", "10180", "10250", "10300", "10470", "10500", "1…
$ area_name <chr> "Albury", "Armidale Regional", "Ballina", "Balranald", "… it's just one line to change and i'll add a commit |
@wfmackey forgot about this - have updated one line of code to make area_code a character variable |
only mutate area_code if the column exists also change filtering from across to if_any as dplyr guidlines
might as well make all area codes change to character for consistency (now including the sa1_7 and sa1_11 columns) also filter out if code and/or name is null, not just code
filter works best to remove row unless it has a code and a name (this helps remove the © Commonwealth of Australia 2023 row)
Hi all, Will this be merged in the future? Looks like it should be good to go, no? |
Included summary tables in get_seifa, with data_subclass = 'summary'.
Added the data_subclass as a column name to avoid confusion about which row is which when multiple subclasses are chosen, like current output shown below:
Added year as a column name - again to avoid confusion.
Treat hyphens as missing in the spreadsheets so that score columns get read in as numeric class instead of character.