Error in forderv(y, retGrp = TRUE) :
Column 2 is length 1 which differs from length of column 1 (3)
CJ_old(1:2, list(1:3, 1), sorted = FALSE)
V1 V2
1: 1 1,2,3
2: 1 1
3: 2 1,2,3
4: 2 1
The logic for building the CJ output from list input is the same, but sorted has to be FALSE because there's no ordering of lists.
We can either stop here or force sorted = FALSE... either way the current behavior is confusing.
The logic for building the
CJoutput fromlistinput is the same, butsortedhas to beFALSEbecause there's no ordering of lists.We can either
stophere or forcesorted = FALSE... either way the current behavior is confusing.