remove_anno | R Documentation |
matrixset
Deletes row or column annotation (i.e., trait).
The tag is a special trait that can't be removed. The tag is the column name
of the meta data frame that holds the row or column names. The tag identity
of the' object can be obtained via row_tag()
or column_tag()
.
remove_row_annotation(.ms, ...)
remove_column_annotation(.ms, ...)
.ms |
A |
... |
Name of traits to remove. Tidy selection is supported. |
A matrixset
with updated row or column meta info.
Removing a trait that is used for grouping is not allowed and will not work.
ms1 <- remove_row_annotation(student_results, class, teacher)
# this doesn't work because "class" is used for grouping
ms2 <- tryCatch(remove_row_annotation(row_group_by(student_results, class), class),
error = function(e) e)
is(ms2, "error") #TRUE
ms2$message
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.