You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generic support for dimension-aware attributes that are acknowledged whenever the object is subsetted. For vectors we have names(), for matrices and data frames we have rownames() and colnames(), and for arrays and other objects we have dimnames().
This is essentially Biobase::AnnotatedDataFrame and S4Vectors::DataFrame. One interesting direction would be to consider the meta columns as grouping factors and use them to implement pivot-table functionality.
I have an alternative package that tries to address this issue for matrices: annmatrix. AnnotatedDataFrame and BioConductor objects in general were a bit too heavy for my taste, so I tried to construct a matrix-based custom S3 object. It seems to work quite well, better than I initially imagined. One major upside is that the object is still a proper matrix and can be passed to functions expecting a matrix.
Description
Generic support for dimension-aware attributes that are acknowledged whenever the object is subsetted. For vectors we have names(), for matrices and data frames we have
rownames()
andcolnames()
, and for arrays and other objects we havedimnames()
.Example
The text was updated successfully, but these errors were encountered: