Hi,
I would like to make an application in Alteryx using R tool, used for running an R script that makes changes in a column (the number of the column is entered by the user) of some file. So at the moment I'm able to create an input data and link it to the R tool which holds the script. Then link it to the browser to see results. So I don't know how to pass the number of the column given by the user through the numeric up down to the R tool and how read this input inside the script. For clarify the idea:
Thank you
Solved! Go to Solution.
Attached a sample doing what I think you want.
This keeps columns 1 to the specified number.
There is a bug in my R code such that it transposes if only one column but it works otherwise.
You have to use a formula to update the value. For simplicity I made it have a variable in the R code to target.
Hopefully enough to get you going
Hi,
The sample that you attached made the work but the problem, is when it replace the value entered by the user interface for 'colNum'. It doesn't replace actually, it appends the new value to the current value. So if you set:
In R tool: colNum = 2
and then the value entered by the interface user is 1, I get colNum=12
So I want to replace the value of colNum not append it.
Thank you
User | Count |
---|---|
19 | |
14 | |
13 | |
9 | |
8 |