DRDataRaft/ docs
GitHub ↗

dr_step_lookup()

Uses the same dependency resolution and relationship checks as dr_lookup_spec(). Reusable lookup specifications can instead be passed to dr_step_transform().

Usage

dr_step_lookup(
  x,
  source,
  by,
  engine = c("dm", "native"),
  unmatched = c("error", "keep"),
  suffix = c(".x", ".y"),
  name = NULL,
  table = NULL
)

Arguments

x
A dr_recipe() specification.


source
Reference data, path, source adapter, product or successful result.


by
Equality keys as a character vector, named vector or dplyr::join_by().


engine
Constraint engine: "native" or optional "dm".


unmatched
Whether unmatched input rows fail or retain missing attributes.


suffix
Two suffixes for overlapping non-key column names.


name
Stable reference delivery name for source replacement.


table
Member table to select from a successful model result.

Value

An updated recipe.

Examples

dr_recipe() |>
  dr_step_lookup(data.frame(id = 1:2, region = c("North", "South")),
    by = "id", name = "customers")
Documentation source snapshot · View source at d9cb454 ↗
Code examples are documented source examples; they are not executed in this website build.

Search documentation

Search functions, packages and guides.