Closed michaeldorman closed 3 years ago
Yeap, it would, but unfortunately there's not much we can do. This package works by implementing S3 methods for various generics. Functions like apply
do not fall in that category, so we don't have any mechanism to make them preserve the attributes beyond wrapping them, which you can do for yourself, e.g.:
set_units(apply(m, 1, min), units(m), mode="standard")
I understand. Thank you for the quick response and great package!
When passing a
units
matrix toapply
, the result loses theunits
class. For example:It would be really convenient to keep the
units
, if possible, in colwise/rowwise operations just like in operations on the entire matrix:Thank you very much!