How to get input dataset dynamically in code recipe in R

kimchye88
kimchye88 Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1 ✭✭✭

r script

dkuReadDataset(???????, samplingMethod="full")

python script

input_dataset = dataiku.Dataset(FLOW["in"][0]["smartName"]).get_dataframe()

i doing this becoz i'm saving my code into "Code Sample". the same code will be execute again using different source of data.

Tagged:

Answers

  • JordanB
    JordanB Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 296 Dataiker

    Hi @kimchye88
    ,

    Thanks for writing in! So, unfortunately, there is no way to get an input dataset dynamically with R to be saved as a code sample. The most convenient option would be use the variables that are provided within an R recipe. Of course, you always can hardcode the input dataset as well.

    If you have any further questions, please let us know.

    Best,

    Jordan

Setup Info
    Tags
      Help me…