When a vector is promoted to a matrix, its names are not
promoted to row or column names, unlike as.matrix
.
Promotion of a vector to a 1-row or 1-column matrix happens when one
of the two choices allows x
and y
to get conformable
dimensions.
This operator is a generic function: methods can be written for it
individually or via the matOps
group
generic function; it dispatches to S3 and S4 methods. Methods need to be
written for a function that takes two arguments named x
and y
.