retain: Primary Keys: Retain Values

View source: R/utils.R

retainR Documentation

Primary Keys: Retain Values

Description

Retain values within primary keys.

Usage

retain(df, value_var, event, outside = NA)

Arguments

df

(data.frame)
Data frame in which to apply the retain.

value_var

(any)
Variable in df containing the value to be retained.

event

(expression)
Expression returning a logical value to trigger the retain.

outside

(any)
Additional value to retain. Defaults to NA.

Value

A vector of values where expression is true.


random.cdisc.data documentation built on Oct. 10, 2024, 5:08 p.m.