rand_intvect: This creates a vector of N whole numbers that add up to M.

Description Usage Arguments

View source: R/gen_funs.R

Description

This creates a vector of N whole numbers that add up to M.

Usage

1
rand_intvect(N, M, sd = 1, pos.only = TRUE)

Arguments

N

number of values in vector

M

total values should add up to

sd

sd of values, default is 1

pos.only

should the vector contain only positive values, default is TRUE


mcoshima/moMSE documentation built on Nov. 26, 2020, 5:39 a.m.