powered by
split a positive integer number as a number vector
pos_int_split(x, n, method = "average")
number vector
positive integer
length of the output
should be one of average, random, or a number vector which length is n
average, random
pos_int_split(12, 3, method = "average") pos_int_split(12, 3, method = "random") pos_int_split(12, 3, method = c(1, 2, 3))
Run the code above in your browser using DataLab