remove_matrix: Remove one or more matrices of the matrixset object
Description
This is a special case of the [ method, with the benefit of being explicit
about what action is taken.
Usage
remove_matrix(.ms, matrix)
Value
A matrixset with updated matrices.
Arguments
.ms
A matrixset object. Leave empty only if remove_matrix()
is used inside mutate_matrix().
matrix
index specifying matrix or matrices to remove. Index is
posivie numeric or character vectors. Tidy select is
also supported .Leave empty only if remove_matrix()
is used inside mutate_matrix().
Usage inside <code>mutate_matrix()</code>
In most cases, both arguments of the function are mandatory. However, if you
want to declare that a matrix should be removed via the mutate_matrix()
function, the remove_matrix() must be called without arguments. There is
an example that illustrates that.