Closed HenrikBengtsson closed 3 years ago
Should we add diag() for list environments?
diag()
(Moved from Issue #22)
diag() is not a generic function, so it won't work as-is. The second best would be to create something like:
diag2 <- function(x) { x[diag(seq_along(x), nrow = nrow(x)) > 0] }
Should we add
diag()
for list environments?(Moved from Issue #22)