Overview
I find myself searching for all verbose/critical output that contains/doesn't contain e.g. hypotheses 2 & 4. This takes quite a lot of searching and scanning across blocks of numbers, sometimes tracking multiple rows/columns at the same time. And I get lost a lot doing this! Also, large enough graphs start cutting off critical output because of data length
Usage - subset()
So if you have some res <- test_graph(g, p, verbose = TRUE, critical = TRUE), these functions could say subset_test_results(res, c(2, 4), keep = TRUE, which = c("verbose", "critical")) and return a test object with
verbose results filtered for intersections containing (or not containing if keep = FALSE) hypotheses 2 and 4
critical results filtered for...
1. Those same intersections?
2. Or only the rows of critical containing hypotheses 2 or 4
Usage - sort()
There could also be one to sort_test_results(res, c(2, 4), first = TRUE, which = c("verbose", "critical")), which would keep all results, but put 2/4-related intersections first (last).
Related
#26 has some ideas about this related to formatting, and this issue could build on that, or be made separately.
#27 could also be related, as these could be done as generics for sort() and subset()`
Overview
I find myself searching for all verbose/critical output that contains/doesn't contain e.g. hypotheses 2 & 4. This takes quite a lot of searching and scanning across blocks of numbers, sometimes tracking multiple rows/columns at the same time. And I get lost a lot doing this! Also, large enough graphs start cutting off
criticaloutput because of data lengthUsage -
subset()So if you have some
res <- test_graph(g, p, verbose = TRUE, critical = TRUE), these functions could saysubset_test_results(res, c(2, 4), keep = TRUE, which = c("verbose", "critical"))and return a test object withverboseresults filtered for intersections containing (or not containing ifkeep = FALSE) hypotheses 2 and 4criticalresults filtered for...1. Those same intersections?
2. Or only the rows of
criticalcontaining hypotheses 2 or 4Usage -
sort()There could also be one to
sort_test_results(res, c(2, 4), first = TRUE, which = c("verbose", "critical")), which would keep all results, but put 2/4-related intersections first (last).Related
#26 has some ideas about this related to formatting, and this issue could build on that, or be made separately.
#27 could also be related, as these could be done as generics for
sort() andsubset()`