subset on un-named ISMs
Closed this issue · 2 comments
josherrickson commented
> a
control
treated [,1] [,2]
[1,] 20 40
[2,] Inf 10
> subset(a, subset = c(TRUE, TRUE), select = c(TRUE, FALSE))
control
treated [,1]
[1,] 20
Believe this is related to the lack of names on the dimensions.
> b
control
treated H I
A 0.09781492 0.05678264
B Inf Inf
> subset(b, subset = c(TRUE, TRUE), select = c(TRUE, FALSE))
control
treated H
A 0.09781492
B Inf
benthestatistician commented
We can circumvent this by requiring ISMs to have row and column names.
josherrickson commented
Figured out the issue - subset.ISM
needed to be given the proper dimensions explicitly.