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

Seifa 2021 #105

Merged
merged 12 commits into from
Sep 30, 2024
Merged

Seifa 2021 #105

merged 12 commits into from
Sep 30, 2024

Conversation

peteowen1
Copy link
Contributor

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:
image

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.

@wfmackey
Copy link
Collaborator

@peteowen1 given SA codes are stored as characters in absmapsdata (eg: class(sa42021$sa4_code_2021) is character, would it be better to set area_code variables to be characters, too?

@wfmackey
Copy link
Collaborator

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

@peteowen1
Copy link
Contributor Author

@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
@wfmackey wfmackey self-requested a review February 7, 2024 01:12
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)
@JustGitting
Copy link
Contributor

Hi all,

Will this be merged in the future? Looks like it should be good to go, no?

@wfmackey wfmackey merged commit 23f1524 into runapp-aus:master Sep 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants