Organizes arguments of binary (2 arguments) _byname functions.
Actions performed are:
if only one argument is a list, make the other argument also a list of equal length.
if both arguments are lists, ensure that they are same length.
if one argument is a matrix and the other is a constant, make the constant into a matrix.
ensures that row and column types match for
typematch_margins.ensures that list item names match if both
aandbare lists; no complaints are made if neitheranorbhas names.completes and sorts the matrices.
Arguments
- a
the first argument to be organized
- b
the second argument to be organized
- match_type
one of
"all","matmult","none". When bothaandbare matrices, "all" (the default) indicates that rowtypes ofamust match rowtypes ofband coltypes ofamust match coltypes ofb. If "matmult", coltypes ofamust match rowtypes ofb.- fill
a replacement value for
aorbif either is missing orNULL.