remove_matrix | R Documentation |
matrixset
objectThis is a special case of the [
method, with the benefit of being explicit
about what action is taken.
remove_matrix(.ms, matrix)
.ms |
A |
matrix |
index specifying matrix or matrices to remove. Index is
posivie numeric or character vectors. Tidy select is
also supported .Leave empty only if |
A matrixset
with updated matrices.
mutate_matrix()
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.
ms1 <- remove_matrix(student_results, "remedial")
ms2 <- remove_matrix(student_results, 2)
ms3 <- mutate_matrix(student_results, remedial = remove_matrix())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.