makeVec | R Documentation |
This is a convenience for handling function arguments. If x is a single value, it makes a vector of length d in which all values are equal to x. If x is a vector, check that its length is d.
makeVec(x = NULL, d = NULL)
x |
A single value or a vector |
d |
An integer, the desired size of the vector |
A vector of length d
Paul E. Johnson pauljohn@ku.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.