Forum Discussion

LillyLegenda's avatar
LillyLegenda
Helper III
5 years ago
Solved

Invoke R-Script function to all fieles in Folder

Good morning,  I am using an R-Script to do a market basket analysis. The code is working fine and I managed to create a function call Apri.   let Apri = (Quelle) => Quelle = Report, #"R-...
  • ImkeF's avatar
    5 years ago

    Hi LillyLegenda ,

    didn't pay attention to the function itself.
    Problem with your function is that it ignores the function parameter and itself always takes table "Report" to work upon.

    Changed it to this:

     

    and its working now (see attachment).

    But it's a bad practice to name the function parameter the same as a step/variable in the query itself.
    So it would be better (and less confusing) to name it like so: