Automated lag variable processing

I need to generate about 300 lag variables (-1) for 300 variables. Is there a way to do this in a loop, or do I have to do them individually?

See if

works for you.

Hi @dataminer_1
See this example looping over all columns from the KNIME hub. Replace the Math formula node with the Lag Column node. That’s it.
gr. Hans

1 Like


Thanks, that did it! I knew that I needed something like an anonymous variable in the Lag Column node, but I didn’t see how to do it.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.