Closed andkov closed 5 years ago
in #2, (./manipulation/0-greeter-gls.R) lines 135-136 https://github.com/dss-hmi/suicide-prevention-2019/blob/5879571bed189728c06c1fd52c062785a9ae17fe/manipulation/0-greeter-gls.R#L135 we start splitting the column county_zipcode into two separate columns.
./manipulation/0-greeter-gls.R
county_zipcode
as you can see, regular expression governing this task need to be more flexible to accommodate variety of county spellings.
@Jodh , develop the regexes in this section of the code to properly parse county_zipcode into two separate columns.
Testing this regex successfully extracts the name part for all three cases:
Sorry, @Jodh , I think I have solved this first. We have to use this regex in order to capture some non-digits in the zipcode.
in #2, (
./manipulation/0-greeter-gls.R
) lines 135-136 https://github.com/dss-hmi/suicide-prevention-2019/blob/5879571bed189728c06c1fd52c062785a9ae17fe/manipulation/0-greeter-gls.R#L135 we start splitting the columncounty_zipcode
into two separate columns.as you can see, regular expression governing this task need to be more flexible to accommodate variety of county spellings.
@Jodh , develop the regexes in this section of the code to properly parse
county_zipcode
into two separate columns.