RobinHankin / freegroup

The free group in R
https://robinhankin.github.io/freegroup/
0 stars 0 forks source link

extractor method ```[.free()``` gives unhelpful error message #14

Open RobinHankin opened 6 years ago

RobinHankin commented 6 years ago
> abc(1:3)[c(F,NA,T)]
Error in free(unclass(x)[...]) : 
  all(unlist(lapply(x, is_proper))) is not TRUE
> 
RobinHankin commented 2 years ago

But look how base R manages extraction for vectors with an index including NA:

> (1:3)[c(T,NA,T)]
[1]  1 NA  3
> 

that Just Works (tm) but the freegroup package does not and should not (?) include NA functionality.