time_of_first_dose: Time of the first dose

View source: R/time_after_dose.R

time_of_first_doseR Documentation

Time of the first dose

Description

Time of the first dose

Usage

time_of_first_dose(.df, .name = "FDDTTM", .criteria = EVID %in% c(1,
  4), .time = "TIME")

Arguments

.df

dataframe

.name

output column name as a string

.criteria

An expression that identifies valid dose records

.time

time column name, as a string. Defaults to TIME

Details

This functions operates on the entire dataframe given by .df and finds the first time specified in .time that matches the expression passed in .critera (by default it looks for EVID 1 or 4). The value is returned in a newly created column specified by .name.


qPharmetra/PMDatR documentation built on April 7, 2024, 5:42 p.m.