# \donttest{
# This is designed to be called in a function environment which
# would provide something like the following:
xpdb_f <- franken_xpdb(pheno_base, pheno_final, .types="catcov")
xpdb_list <- list(pheno_base, pheno_final)
# The following would be inside the function
xpdb_f %>%
franken_prop(xpdb_list, "run",
glue_cmd = function(x) paste(x, collapse="+"))
# xpdb_f may have to be written to a few times if
# and problem-specific combinations are needed:
updated <- xpdb_f %>%
franken_prop(xpdb_list, "run",
glue_cmd = function(x) paste(x, collapse="+"))
# problem will also be available. Assume there's
# no reason to loop here, but that may be needed
problem <- 1
updated <- updated %>%
franken_prop(xpdb_list, "ofv", problem=problem,
glue_cmd = function(x) paste(x, collapse="&"))
# }
Run the code above in your browser using DataLab