UCD-SERG / serocalculator

Estimating Infection Rates from Serological Data
https://ucd-serg.github.io/serocalculator/
4 stars 2 forks source link

add regex to age attribute in load_pop_data #235

Closed chrisorwa closed 3 months ago

chrisorwa commented 3 months ago

pop age match with words that end with age like "village"

prepare cross-sectional data

xs_data <-

data %>% as_pop_data() Error in set_value(): ! No similar column name was detected. Run rlang::last_trace() to see where the error occurred. Warning messages: 1: Unknown or uninitialised column: antigen_iso. 2: The specified age column "Age" does not exist. 3: Multiple potential matches found: Village and age.at.the.visit 4: Using first match: Village 5: The specified value column "result" does not exist.

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 66.66667% with 3 lines in your changes missing coverage. Please review.

Files Patch % Lines
R/load_pop_data.R 66.66% 3 Missing :warning:
Files Coverage Δ
R/as_pop_data.R 93.33% <ø> (ø)
R/load_pop_data.R 54.70% <66.66%> (+9.08%) :arrow_up:
chrisorwa commented 3 months ago

Current implementation already sufficient