as_pop_data {serocalculator} | R Documentation |
Load a cross-sectional antibody survey data set
Description
Load a cross-sectional antibody survey data set
Usage
as_pop_data(
data,
antigen_isos = NULL,
age = "Age",
value = "result",
id = "index_id",
standardize = TRUE
)
Arguments
data |
|
antigen_isos |
|
age |
a |
value |
a |
id |
a |
standardize |
a |
Value
a pop_data
object (a tibble::tbl_df
with extra attribute antigen_isos
)
Examples
library(magrittr)
xs_data <-
serocalculator_example("example_pop_data.csv") %>%
read.csv() %>%
as_pop_data()
print(xs_data)
[Package serocalculator version 1.3.0 Index]