Re: [Rd] Inquiry about the behaviour of subsetting and names in matrices

2023-05-03 Thread GILLIBERT, Andre via R-devel
Karolis K wrote: > This is more an inconsistency between vectors and matrices. > In vectors both numeric and character sub-setting works with NAs. > In matrices only numberic and not character sub-setting works with NAs. > Potentially this in itself can also be a source of bugs, or, at least

Re: [Rd] Inquiry about the behaviour of subsetting and names in matrices

2023-05-03 Thread GILLIBERT, Andre via R-devel
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

[Rd] Documentation bug?

2023-02-14 Thread GILLIBERT, Andre via R-devel
Dead R developers, In R-devel 2023-02-11 and older R versions, there is a note in the "lm {stats}" help page specifying that: > Offsets specified by offset will not be included in predictions by > predict.lm, whereas > those specified by an