mnoetel / READI-SCRUB

For READI SCRUB project cleaning code and dashboard
Creative Commons Zero v1.0 Universal
1 stars 1 forks source link

Filtering by "Australia" and "state" removes wave 4 data #10

Closed mnoetel closed 4 years ago

mnoetel commented 4 years ago

https://v.usetapes.com/5zqb89Lz70

aksaeri commented 4 years ago

I think the following code snippet will fix this. The way we measure state_aus and ausonly_state is slightly different.

d$ausonly_state <- as_factor(d$ausonly_state)
d$state_aus[is.na(d$state_aus)] <- d$ausonly_state[is.na(d$state_aus)]