ncevičius
Envoyé : mercredi 3 mai 2023 11:08:28
À : GILLIBERT, Andre
Cc : r-devel@r-project.org
Objet : Re: [Rd] Inquiry about the behaviour of subsetting and names in matrices
ATTENTION: Cet e-mail provient d’une adresse mail extérieure au CHU de Rouen.
Ne cliquez pas sur les liens ou n
Thank you for such a quick reply, here are some points that I think might have
been missed:
> I would state the question the other way : why are NAs integer indices
> allowed?
> In my experience, they are sometimes useful but they often delay the
> detection of bugs. However, due to backward co
Karolis wrote:
> Hello,
> I have stumbled upon a few cases where the behaviour of naming and subsetting
> in matrices seems unintuitive.
> All those look related so wanted to put everything in one message.
> 1. Why row/col selection by names with NAs is not allowed?
> x <- setNames(1:10, le