Skip to contents

Calculates and returns the list of time required (in ranked order) to achieve target points using the different options provided in input

Usage

pts_calc(points_attempt, time_attempt, target_points)

Arguments

points_attempt

numeric vector for number of points obtained in each attempt

time_attempt

numeric vector for time taken (in minutes) for each attempt

target_points

Float / Integer number of points targetted to reach

Value

numeric vector for time required (in ranked order of minutes) to achieve target points using the different options provided in input

Examples

points_attempt = c(100,20,120,150,200,30)
time_attempt = c(2,3,2,5,6,2)
target_points = 200
pts_calc(points_attempt = points_attempt,time_attempt = time_attempt ,target_points = target_points)
#> [1]  3.333  4.000  6.000  6.667 13.333 29.999