force_vec_to_sum_to_int | R Documentation |
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).
force_vec_to_sum_to_int(vec_int, target_1L_int, item_ranges_dbl_ls)
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) |
Vector (an integer vector)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.