remove_anno {matrixset} | R Documentation |
Remove meta info of a matrixset
Description
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()
.
Usage
remove_row_annotation(.ms, ...)
remove_column_annotation(.ms, ...)
Arguments
.ms |
A |
... |
Name of traits to remove. Tidy selection is supported. |
Value
A matrixset
with updated row or column meta info.
Groups
Removing a trait that is used for grouping is not allowed and will not work.
Examples
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
[Package matrixset version 0.3.0 Index]