irep: Add simulation counter

Description Usage Arguments Examples

View source: R/xpdb_edits.R

Description

Add a column containing a simulation counter (irep). A new simulation is counted everytime a value in x is lower than its previous value.

Usage

1
irep(x, quiet = FALSE)

Arguments

x

The column to be used for computing simulation number, usually the ID column.

quiet

Logical, if FALSE messages are printed to the console.

Examples

1
2
xpdb_ex_pk_2 <- xpdb_ex_pk %>% 
 mutate(sim_id = irep(ID), .problem = 2)

UUPharmacometrics/xpose documentation built on Aug. 17, 2018, 4:29 a.m.