Since this is a common need, it is being functionalized to ensure consistency.
fill_prob_subprob_method(
xpdb,
.problem,
.subprob,
.method,
envir = parent.frame(),
for_summary = FALSE
)<xpose_data> or related object
NULL or missing
NULL or missing
NULL or missing
<environment> in which to assign the problem info.
<logical> If used for summary functions, subprob needs to be adjusted for zero-indexing