Skip to contents

Ensures the input is data frame-like, contains an id column, and has a valid weight column. If weight is missing, equal weights of 1 are assigned.

Usage

check_cohort(x)

Arguments

x

A data frame-like object with an id column and optional weight column.

Value

A validated cohort data frame with id and weight columns.