Learn R Programming

serocalculator (version 1.3.0)

load_pop_data: Load a cross-sectional antibody survey data set

Description

Load a cross-sectional antibody survey data set

Usage

load_pop_data(file_path, ...)

Value

a pop_data object (a tibble::tbl_df with extra attributes)

Arguments

file_path

path to an RDS file containing a cross-sectional antibody survey data set, stored as a data.frame() or tibble::tbl_df

...

Arguments passed on to as_pop_data

data

a data.frame() or tibble::tbl_df

antigen_isos

character() vector of antigen isotypes to be used in analyses

age

a character() identifying the age column

id

a character() identifying the id column

value

a character() identifying the value column

standardize

a logical() to determine standardization of columns

Examples

Run this code
xs_data <- load_pop_data(serocalculator_example("example_pop_data.rds"))

print(xs_data)

Run the code above in your browser using DataLab