Learn R Programming

serocalculator (version 1.3.0)

summary.pop_data: Summarize cross-sectional antibody survey data

Description

summary() method for pop_data objects

Usage

# S3 method for pop_data
summary(object, strata = NULL, ...)

# S3 method for summary.pop_data print(x, ...)

Value

a summary.pop_data object, which is a list containing two summary tables:

  • age_summary summarizing age

  • ab_summary summarizing value, stratified by antigen_iso

Arguments

object

a pop_data object (from as_pop_data())

strata

a character() specifying grouping column(s)

...

unused

x

an object of class "summary.pop_data"; usually, the result of a call to summary.pop_data()

Examples

Run this code
library(dplyr)

xs_data <-
  sees_pop_data_pk_100
summary(xs_data, strata = "catchment")

Run the code above in your browser using DataLab