Learn R Programming

QoLR (version 1.0.3)

maxi.time:

Description

A function to report the highest score at each measurement time point taking into account all previous scores

Usage

maxi.time(vector)

Arguments

vector
A vector with quality of life scores

Value

a vector which the i-th value is equals to the maximum of the first values of the given vector until to the i-th position

Examples

Run this code
vect=c(10,20,30,10,2,0,4,50,20)
maxi.time(vect)

Run the code above in your browser using DataLab