muranks assumes that the values in x are rankings with
values in the set allranks or if that is NULL, between 1 and the
number of columns or values in x. If any values in x are
outside this range, or if the missing ranks are not sequential, the
function will drop that row with a warning.
For each row, the function finds the mean of those ranks in allranks
that were not allocated and substitutes that value for any missing values
in the row.
If rankx is TRUE, each row is passed to rank. This will
convert competition ranks or any set of numbers to the usual mean rankings.
This will also override the rejection of rows in which the missing ranks
are not sequential, and may produce counterintuitive imputed ranks.