decay_epi_df: Drop any 'epi_df' metadata and class on a data frame

View source: R/methods-epi_df.R

decay_epi_dfR Documentation

Drop any epi_df metadata and class on a data frame

Description

Useful in implementing ?dplyr_extending when manipulations cause invariants of epi_dfs to be violated and we need to return some other class. Note that this will maintain any grouping (keeping the grouped_df class and associated attributes, if present).

Usage

decay_epi_df(x)

Arguments

x

an epi_df or other data frame

Value

x with any metadata dropped and the "epi_df" class, if previously present, dropped


cmu-delphi/epiprocess documentation built on Oct. 29, 2024, 5:37 p.m.