Skip to contents

A thin S3 wrapper around a data frame returned by zhn_read_cohort(). Inherits from data.frame so all base subscripting and dplyr verbs work; the class is preserved across [-subsetting but stripped by most dplyr verbs (use tibble::as_tibble() to opt out cleanly).

Usage

new_cohort_df(x = data.frame(), sheet_to_use = NA_character_)

Arguments

x

A data frame.

sheet_to_use

Name of the workbook sheet the data came from (carried as an attribute).

Value

A cohort_df (S3 class), inheriting from data.frame.