powered by
Load a cross-sectional antibody survey data set
as_pop_data( data, antigen_isos = NULL, age = "Age", value = "result", id = "index_id", standardize = TRUE )
a pop_data object (a tibble::tbl_df
pop_data
with extra attribute antigen_isos)
antigen_isos
a data.frame() or tibble::tbl_df
data.frame()
character() vector of antigen isotypes to be used in analyses
character()
a character() identifying the age column
a character() identifying the value column
a character() identifying the id column
a logical() to determine standardization of columns
logical()
library(magrittr) xs_data <- serocalculator_example("example_pop_data.csv") %>% read.csv() %>% as_pop_data() print(xs_data)
Run the code above in your browser using DataLab