powered by
1:n
Fixes indices that fall outside the valid range 1:n using circular (modulo) wrapping.
fixm(v, n)
An integer vector of the same length as v, with all values wrapped into the range 1 to n.
v
1
n
An integer vector of indices.
A positive integer giving the length of the domain; valid indices are 1 to nobs.
nobs