pos_int_split {baizer} | R Documentation |
split a positive integer number as a number vector
pos_int_split(x, n, method = "average")
x |
positive integer |
n |
length of the output |
method |
should be one of |
number vector
pos_int_split(12, 3, method = "average")
pos_int_split(12, 3, method = "random")
pos_int_split(12, 3, method = c(1, 2, 3))