mrc-ide / epireview

https://mrc-ide.github.io/epireview/
Other
26 stars 2 forks source link

Use %in% to compare strings to gracefully deal with NAs #124

Closed sangeetabhatia03 closed 3 weeks ago

sangeetabhatia03 commented 3 weeks ago

filter_df_for_metamean was creating rows with all NAs because we used == to compare the column paramter_value_type with Mean/Median etc. Where the column itself was NA, using == led to NA instead of a logical. I have now fixed this so that we use %in% operator to compare strings.