powered by
Throws an error if wtvec is not n positive numbers, and return wtvec (stripped of any dim atrribute)
wtvec
n
dim
wtcheck(n, wtvec)
a vector of n positive numbers
the required length of wtvec
an object to be checked
wtcheck(3, 1:3) wtcheck(2, matrix(1:2, 2))
Run the code above in your browser using DataLab