util_optimize_sequence_across_time_var {dataquieR}R Documentation

Utility function to distribute points across a time variable

Description

Utility function to distribute points across a time variable

Usage

util_optimize_sequence_across_time_var(
  time_var_data,
  n_points,
  prop_grid = 0.5
)

Arguments

time_var_data

vector of the data points of the time variable

n_points

maximum number of points to distribute across the time variable (minimum: 3)

prop_grid

proportion of points given in n_points that should be distributed in an equally spaced grid across the time variable (minimum: 0.1, maximum: 1). The remaining proportion of points will be spaced according to the distribution of the time variable's data points.

Value

a sequence of points in datetime format


[Package dataquieR version 2.5.1 Index]