Currently, this call in clean_2022_WSHFC_data.R causes an error within the add_cleaned_addresses() function.
The problem seems to be in the call to pm_identify(), which is a function in the postmastr package. It is advertised as a way to add unique identifiers to rows in a data frame, but instead seems to be creating a lot of duplicate rows.
This might be a problem in the postmastr package, but it hasn't given trouble in previous data sets so it might be an interaction with some quirk in the 2022 IRHD data that we are throwing at it.
Currently, this call in clean_2022_WSHFC_data.R causes an error within the
add_cleaned_addresses()function.The problem seems to be in the call to pm_identify(), which is a function in the postmastr package. It is advertised as a way to add unique identifiers to rows in a data frame, but instead seems to be creating a lot of duplicate rows.
This might be a problem in the
postmastrpackage, but it hasn't given trouble in previous data sets so it might be an interaction with some quirk in the 2022 IRHD data that we are throwing at it.