give the max value up to that point
max_through(x)
x | A numeric vector of values |
---|
useful for safety analyses where an event may be defined as a certain change in a biomarker, so need to see how the current measurement compares to the maximum value up to that point
#> [1] 4 4 4 4 5 5#> [1] NA 2 2 4 4