Open gmbecker opened 1 year ago
I think the path is available here: .spl_context$cur_col_split_val
or .spl_context$cur_col_split
. We could discuss having a .spl_context_rows and .splt_context_cols (and maybe making it an object with rows and cols getter/setters) but at the moment I do not know if it is worth the added complexity
@Melkiades unfortunately the current split and value are not sufficient. In the example I put above (which I can now say is a set of relative risk columns, since I found out that came from public FDA specs), I effectively need to know whether the current column split has a parent split or not.
Currently the
cur_col_id
in the split context is pasted together from only the values of the column path the tabulation machinery is currently at.This information is incomplete, particularly in cases where there are different facets in column space based on the same variable, e.g,
gives us
Note I was able to monkey-hack something together here, but having access to the full path, either in pasted form in
cur_col_id
or preferably, imo, in a separate list column, would be a cleaner solution more in line with all of the o ther path-based interactionsrtables
supports