added checks for fp adults in read_data.R

This commit is contained in:
Tanushree Tunstall 2020-11-18 13:08:39 +00:00
parent 07de043cab
commit 9dbad32504

View file

@ -61,6 +61,12 @@ if (table(adult_df$adult == 1)[[1]] == nrow(adult_df) ){
# extract the flu positive population
fp_adults = adult_df[adult_df$flustat == 1,]
if (table(fp_adults$flustat == 1)[[1]] == nrow(fp_adults) ){
cat ("PASS: adult df extracted successfully")
} else{
cat ("FAIL: adult df number mismatch!")
}
#============
# hc
#============