Function with Loop

The sample data you are providing is not complete enough to reproduce your code (since only has one commodity code), you are not providing a sample of the content of list_all and you are not providing the data on a copy/paste friendly format. Could you please turn this into a proper self-contained REPRoducible EXample (reprex)?

1 Like