You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a mistake and tried to check adjustment from a plot instead of the of the DAG and there was an unexpected error:
library("dagitty")
library("ggdag")
#> #> Attaching package: 'ggdag'#> The following object is masked from 'package:stats':#> #> filterdag<- dagitty("dag{ a -> b b -> c c -> d }")
plot<- ggdag(dag) +
theme_dag() + theme_dag_gray()
ggdag_adjustment_set(plot, outcome="a")
#> Error in if (class(x) == "dagitty") {: the condition has length > 1
I think this could be just a simple case of replacing class(x) by is(x, "dagitty") in
I made a mistake and tried to check adjustment from a plot instead of the of the DAG and there was an unexpected error:
I think this could be just a simple case of replacing
class(x)
byis(x, "dagitty")
indagitty/r/R/dagitty.r
Line 2625 in ca4ec74
Created on 2023-01-20 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: