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)
A single value or a vector
An integer, the desired size of the vector
A vector of length d