vector_scalar_check {microbiomeDASim} | R Documentation |
This function allows users to specify just a scalar value as a parameter in the generating function, and here it is converted to a vector of the proper length.
vector_scalar_check(input, n)
input |
a variable that will be supplied that we want to either check the length or replicate to the specified length |
n |
an integer value specifying the desired vector length if a scalar is provided |
Note that n
refers to the number of individuals in the
mvrnorm_corr_gen
return a vector that has same length as specified n