as.editmatrix function

Coerce a matrix to an edit matrix.