apply_compactify: Given a tibble as would be found in an epi_archive, remove...

View source: R/archive.R

apply_compactifyR Documentation

Given a tibble as would be found in an epi_archive, remove duplicate entries.

Description

Works by shifting all rows except the version, then comparing values to see if they've changed. We need to arrange in descending order, but note that we don't need to group, since at least one column other than version has changed, and so is kept.

Usage

apply_compactify(df, keys, tolerance = .Machine$double.eps^0.5)

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