vector_scalar_check {microbiomeDASim} | R Documentation

## Checking input for scalar or vector valued

### Description

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.

### Usage

    vector_scalar_check(input, n)

### Arguments

`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

### Details

Note that `n` refers to the number of individuals in the `mvrnorm_corr_gen`

### Value

return a vector that has same length as specified n

[Package microbiomeDASim version 1.0.0 Index]