Hub
Pricing About
NodeNode / Manipulator

Lag Column

ManipulationColumnTransformStreamable
Drag & drop
Like

Copies column values from preceding rows into the current row. The node can be used to

  1. make a copy of the selected column and shift the cells I steps up ( I = lag interval)
  2. make L copies of the selected column and shift the cells of each copy 1, 2, 3, ... L -1 steps up ( L = lag = number of copies)

The option "Number of copies" ( L ) in this node is useful for time series prediction. If the rows are sorted in time increasing order, to apply a lag D to the selected column means to place D -1 past values of the column and the current value of the column on one row. The data table can then be used for time series prediction.

The lag interval option I (periodicity or seasonality) in this node is useful to compare values from the past to the current values. Again if the rows are sorted in time increasing order, to apply a lag interval I means to set aside on the same row the current value and the value occurring I steps before.

L and I can be combined to obtain L -1 copies of the selected column, each one shifted I , 2* I , 3* I , ... ( L -1)* I steps backwards.

Node details

Input ports
  1. Type: Table
    Input
    Input data
Output ports
  1. Type: Table
    Output
    Input data with additional columns copying the values from preceding rows.

Extension

The Lag Column node is part of this extension:

  1. Go to item

Related workflows & nodes

  1. Go to item
  2. Go to item
  3. Go to item

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits