pos_int_split {baizer} | R Documentation |
split a positive integer number as a number vector
Description
split a positive integer number as a number vector
Usage
pos_int_split(x, n, method = "average")
Arguments
x |
positive integer |
n |
length of the output |
method |
should be one of |
Value
number vector
Examples
pos_int_split(12, 3, method = "average")
pos_int_split(12, 3, method = "random")
pos_int_split(12, 3, method = c(1, 2, 3))
[Package baizer version 0.8.0 Index]