added checks for fp adults in read_data.R
This commit is contained in:
parent
07de043cab
commit
9dbad32504
1 changed files with 6 additions and 0 deletions
|
@ -61,6 +61,12 @@ if (table(adult_df$adult == 1)[[1]] == nrow(adult_df) ){
|
||||||
# extract the flu positive population
|
# extract the flu positive population
|
||||||
fp_adults = adult_df[adult_df$flustat == 1,]
|
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
|
# hc
|
||||||
#============
|
#============
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue