Closed spitzem closed 2 years ago
Hi Spitzem, the function is super higly optimized and fast. The cost is, as you mentioned, the minimum vlaue must be zero and the nubmers should be consecutive.
I am afraid there is nothing we can do.
Hi starlink, yes i posted is as a documentation issue because it took me some time to find out, why the crash is happening.
Hi everyone,
when i ran Rfast::g2Test, the R session repeatedly crashed. The issue seems to be with columns of the input data that have the minimum zero but have a gap in their unique integer values. Say, their unique values are c(0, 1, 2, 3, 5). This situation arises for example with integer derived from factors with factor levels that are unobserved in the dataset at hand.
I'm using R 4.1.2 and Rfast 2.0.6
The following example always crashes my R-Session: