clean_pop_data {serocalculator} | R Documentation |
Reformat a cross-sectional antibody survey dataset
clean_pop_data(pop_data)
pop_data |
a
|
A data.frame (or tibble::tbl_df) containing the following columns:
id
: a character()
variable identifying multiple rows of data from the same person
antigen_isos
: a character()
variable indicating the antigen-isotype measured
value
: the measured antibody concentration
age
: age of the individual whose serum has been assayed, at the time of blood sample
xs_data <- load_pop_data("https://osf.io/download//n6cp3/")
clean_pop_data(xs_data)