filter_dupe_last_EnrollmentID: Filter for the Last Enrollment ID

View source: R/00_load_export_utils.R

filter_dupe_last_EnrollmentIDR Documentation

Filter for the Last Enrollment ID

Description

The maximum EnrollmentID will always be the latest in Clarity. This function will find the last EnrollmentID per key

Usage

filter_dupe_last_EnrollmentID(.data, key, EnrollmentID)

Arguments

.data

(data.frame) Data with duplicates

key

(name) of the column key that will be grouped by and for which at least one observation will be preserved.

EnrollmentID

(name) of EnrollmentID column that will be filtered for the maximum (latest)

Value

(data.frame) With only the latest Enrollment


COHHIO/RmData documentation built on Feb. 28, 2025, 8:59 a.m.