Community Conundrum 28: News Engagement is live! Read More

Applying an R script, how can I access the input data set?

Level 3
Applying an R script, how can I access the input data set?
I am a bit confused by how R scripts are integrated into the overall flow. Since I connect an R script to a particular data set, it would appear natural that I should not need to name this explicitly (like "standard input" in other languages). However, to get my data into a dataframe, it seems I need to explictly read the data with "dkuReadDataset", and name the dataset (whcih means I have to edit the script if I wan to apply it to another dataset). Do I miss something?
0 Kudos
1 Reply
Dataiker
Dataiker
As you may have noticed Dataiku DSS prefills in the recipe that very line so you don't have to write it yourself and can use the dataframe object straight away.

You are not missing anything, please note that this is so you have more control on names etc and also ensures it works for recipes with multiple entries.

For more information on R recipes you can refer to the documentation page https://doc.dataiku.com/dss/latest/code_recipes/r.html and to the portal dedicated to code recipes https://www.dataiku.com/learn/portals/code.html
0 Kudos
Labels (2)
A banner prompting to get Dataiku DSS