{"title":"Lag Column","nodeType":"Manipulator","id":"*RurwVi1VODgLDTQP","factoryName":"org.knime.base.node.preproc.columnlag.LagColumnNodeFactory","factoryId":"org.knime.base.node.preproc.columnlag.LagColumnNodeFactory","path":["Manipulation","Column","Transform"],"owner":"knime","ownerAccountId":"account:team:b5f0848f-496d-4e6a-b869-fa3532248db7","description":"<p>Copies column values from preceding rows into the current row. The node can be used to</p><ol><li>make a copy of the selected column and shift the cells <i>I</i> steps up ( <i>I</i> &#61; lag interval)</li><li>make <i>L</i> copies of the selected column and shift the cells of each copy 1, 2, 3, ... <i>L</i> -1 steps up ( <i>L</i> &#61; lag &#61; number of copies)</li></ol>\n            \n            <p>The option &#34;Number of copies&#34; ( <i>L</i> ) in this node is useful for time series prediction. If the rows are sorted in time increasing order, to apply a lag <i>D</i> to the selected column means to place <i>D</i> -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.</p>\n            \n            <p>The lag interval option <i>I</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>I</i> means to set aside on the same row the current value and the value occurring <i>I</i> steps before.</p>\n            \n            <p><i>L</i> and <i>I</i> can be combined to obtain <i>L</i> -1 copies of the selected column, each one shifted <i>I</i> , 2* <i>I</i> , 3* <i>I</i> , ... ( <i>L</i> -1)* <i>I</i> steps backwards.</p>\n        \n        ","shortDescription":"Copies column values from preceding rows into the current row.","keywords":["Copy column","Shift","Offset","Previous"],"deprecated":false,"streamable":true,"tags":["Manipulation","Column","Transform","Streamable"],"icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3BpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM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I/PpmRUj4AAAB/SURBVHjaYhAQEPiPDBgYGDD4DEgAIoQQY2KgEAwDA1hIUQwNQBQ2SQYwMjL+R2eT6gUudDOZSPTCdyBmhLIZSfICyM9AZyvANMPYLH/+/CHH/whx9KSKSz9I3cfJ1kDb/8EFBfKOg73AiBw9OGzHnw7wKaB5SiTFaqz+BAgwAOauR29ZwHfNAAAAAElFTkSuQmCC","views":[],"inPorts":[{"objectClass":"org.knime.core.node.BufferedDataTable","color":"000000","dataType":"Table","optional":false,"name":"Input","description":"Input data"}],"outPorts":[{"objectClass":"org.knime.core.node.BufferedDataTable","color":"000000","dataType":"Table","optional":false,"name":"Output","description":"Input data with additional columns copying the values from preceding rows."}],"dynInPorts":[],"dynOutPorts":[],"additionalSiteInformation":{"url":"https://update.knime.com/analytics-platform/5.12","trusted":true,"enabledByDefault":true,"name":"KNIME Analytics Platform 5.12 Update Site","version":"5.12.0"},"dialog":[{"sectionName":"Options","fields":[{"name":"Column to lag","description":"The column to be lagged.","optional":false},{"name":"Number of copies","description":"<i>L</i>&#61; defines how many lagged column copies to create.","optional":false},{"name":"Lag per copy","description":"<i>I</i>&#61; lag interval (sometimes also called periodicity or seasonality), defines how many rows to shift per column copy.","optional":false},{"name":"Drop incomplete rows at the top of the table","description":"If selected, the first rows from the input table are omitted in the output so that the lag output column(s) is not missing (unless the reference data is missing).","optional":false},{"name":"Drop incomplete rows at the bottom of the table","description":"If selected the rows containing the lagged values of the last real data row are omitted (no artificial new rows). Otherwise new rows are added, which contain missing values in all columns but the new lag output.","optional":false}]}],"links":[],"kudos":[{"accountId":"account:user:47dff44b-850b-48fe-b19a-ae20b3c692bd","user":"carlosenrique84","date":"2025-11-30T19:39:14+00:00"}],"kudosCount":1,"bundleInformation":{"bundleVersion":"5.12.0.v202606261225","bundleName":"KNIME Base Nodes","bundleSymbolicName":"org.knime.base","bundleVendor":"KNIME AG, Zurich, Switzerland","featureSymbolicName":"org.knime.features.base","featureName":"KNIME Base nodes","featureVersion":"5.12.0.v202606261225","featureVendor":"KNIME AG, Zurich, Switzerland","extensionId":"*bjR3r1yWOznPIEXS"},"frequentSuccessors":[{"id":"*2fI5rIsFDCFPHc0R","factoryName":"org.knime.ext.jep.JEPNodeFactory","probability":0.1488162344983089},{"id":"*RurwVi1VODgLDTQP","factoryName":"org.knime.base.node.preproc.columnlag.LagColumnNodeFactory","probability":0.08680947012401354},{"id":"*zpGPAjDyExkFL2HB","factoryName":"org.knime.base.node.rules.engine.RuleEngineNodeFactory","probability":0.05411499436302142},{"id":"*DOkyMaii62U05xZ1","factoryName":"org.knime.base.node.preproc.filter.column.DataColumnSpecFilterNodeFactory","probability":0.0496054114994363},{"id":"*uVmaGQkzUOFCTqUe","factoryName":"org.knime.base.node.preproc.pmml.missingval.compute.MissingValueHandlerNodeFactory","probability":0.04735062006764374},{"id":"*jd2U-FYTI8jCbQls","factoryName":"org.knime.base.node.preproc.filter.row.RowFilterNodeFactory","probability":0.03720405862457723},{"id":"*gwwIZ5c5EYsJErci","factoryName":"org.knime.base.node.preproc.sorter.SorterNodeFactory","probability":0.03269447576099211},{"id":"*AApA5VHd41CVDe7u","factoryName":"org.knime.base.node.meta.looper.LoopEndNodeFactory","probability":0.030439684329199548},{"id":"*ZgYyOm1P9VJVBE9e","factoryName":"org.knime.base.node.preproc.joiner.Joiner2NodeFactory","probability":0.02593010146561443},{"id":"*T0AhxSe0Yi42rQK8","factoryName":"org.knime.base.node.preproc.partition.PartitionNodeFactory","probability":0.02480270574971815}]}
