Skip to content

Supplying formulas to domir programatically #7

Closed Answered by jluchman
MarcRieraDominguez asked this question in Q&A
Discussion options

You must be logged in to vote

Hi again Marc,

I've shifted this issue over to be a discussion (issues are more for bug reports or improvement requests).

domir requires a formula (or formula_list) classed object is passed to it in the .obj argument and it does not have a way to work with a string, even if it looks like a formula. That is, the first argument/.obj to domir must be a formula and even if it is parsed as a formula within the function/.fct argument.

The reason for why this is the case gets technical but it suffices to say that if any formula-like string is passed to domir it just needs to be pulled through as.formula first before it is submitted.

For example, something like:

dominance <-
  mod %>% 
  mutate(d…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MarcRieraDominguez
Comment options

Answer selected by MarcRieraDominguez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6 on November 18, 2023 14:36.