The reason that multi-[column|row] and one-[column|row] matrices should
be treated in the same way as to names kept in the result sounds good to
me. I withdraw my remark.
Serguei.
Le 27/11/2018 à 15:48, Radford Neal a écrit :
The behaviour of a[1,] is unchanged, for backwards compatibility
re
> > The behaviour of a[1,] is unchanged, for backwards compatibility
> > reasons. But in pqR one can explicitly mark an argument as
> > missing using "_". When an array subscript is missing in this way,
> > the names will not be dropped in this context even if there is
> > only one of them. So a
Le 27/11/2018 à 01:50, Radford Neal a écrit :
Dmitriy Selivanov (selivanov.dmit...@gmail.com) wrote:
Consider following example:
a = matrix(1:2, nrow = 2, dimnames = list(c("row1", "row2"), c("col1")))
a[1, ]
# 1
It returns *unnamed* vector `1` where I would expect named vector. In fact
it re