clean_pop_data {serocalculator}R Documentation

Reformat a cross-sectional antibody survey dataset

Description

Reformat a cross-sectional antibody survey dataset

Usage

clean_pop_data(pop_data)

Arguments

pop_data

a data.frame() containing the following columns:

  • index_id: a character() variable identifying multiple rows of data from the same person

  • antigen_isos: a character() variable indicating the antigen-isotype measured

  • result: the measured antibody concentration

  • Age: age of the individual whose serum has been assayed, at the time of blood sample collection.

Value

A data.frame (or tibble::tbl_df) containing the following columns:

Examples


xs_data <- load_pop_data("https://osf.io/download//n6cp3/")

clean_pop_data(xs_data)



[Package serocalculator version 1.0.3 Index]