RPVote / eiCompare

Comparing ecological inference techniques
https://rpvote.github.io/voting-rights/
6 stars 7 forks source link

Update ei_rxc.R #132

Closed El-Khatib closed 2 years ago

El-Khatib commented 2 years ago

In some rare cases, ei_rxc could mistakenly pull from the wrong race if the names were contained in one another (for example, "latino" and "non_latino". I added some simple syntax to the grep on lines 188 and 250 to prevent that.