Skip to content

Add or Modify Columns of a Handler

Add derived columns or modify existing ones on a specific table level Expressions must be wrapped in scoping helpers (tree(), cond(), etc) to specify their target table.

transform(handler, ...)
  • handler: A handler object.
  • ...: Scoped expressions using tree(), cond(), or plot() helpers.

The handler with pending mutations queued.

# Add a basal area column to the tree table
handler |>
transform(tree(BA = 0.005454 * DIA^2))