force_vec_to_sum_to_int: Force vector to sum to integer vector

force_vec_to_sum_to_intR Documentation

Force vector to sum to integer vector

Description

force_vec_to_sum_to_int() is a Force function that checks if a specified local or global environmental condition is met and if not, updates the specified environment to comply with the condition. Specifically, this function implements an algorithm to force vector to sum to integer vector. The function returns Vector (an integer vector).

Usage

force_vec_to_sum_to_int(vec_int, target_1L_int, item_ranges_dbl_ls)

Arguments

vec_int

Vector (an integer vector)

target_1L_int

Target (an integer vector of length one)

item_ranges_dbl_ls

Item ranges (a list of double vectors)

Value

Vector (an integer vector)


ready4-dev/youthvars documentation built on Nov. 15, 2024, 6:02 a.m.