是否可以将地图转换与外部计划中描述的分组变量一起使用?
换句话说,这对我有用:
plan_a = drake_plan(
foo = target(x + 1, transform = map(x = c(4, 5, 6))),
bar = target(y + 5, transform = map(foo))
)
但这不是:
plan_a = drake_plan(
foo = target(x + 1, transform = map(x = c(4, 5, 6))),
)
plan_b = drake_plan(
bar = target(y + 5, transform = map(foo))
)
bind_plans(plan_a, plan_b)
谢谢!
答案 0 :(得分:1)
我找到了使用transform_plan
函数的解决方案。