Bug? For lists, we have: > x <- as.list(1:3) > x[[4]] Error in x[[4]] : subscrip...

@henrikbengtsson@mastodon.social

Bug?

For lists, we have:

> x <- as.list(1:3)
> x[[4]]
Error in x[[4]] : subscript out of bounds

but

> x[[Inf]]
NULL

In contrast, for vectors we get an error also in the latter case:

> y <- 1:3
> y[[Inf]]
Error in y[[Inf]] : subscript out of bounds

#RStats