Follow

I have the same objection to that I do to heavy historical tabletop wargames: too many special case exceptions.

> m = matrix(1:6, nrow=3)
> m
[,1] [,2]
[1,] 1 4
[2,] 2 5
[3,] 3 6
> a = c(1, 2)
> b = c(1)
> dim(m[a,])
[1] 2 2
> dim(m[b,])
NULL
> dim(m[b,, drop=FALSE])
[1] 1 2

@data_science

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.