Getting weird output when using SSE-R-Plugin from within a data table
Hello,
I have a simple data table in Qlik with 1 column, say Var1, having entries 1, 2, 3, ... , 10.
Now I want to create a 2nd column, say VarR, that is identical to Var1, but is created with the SSE-R-Plugin.
I tried several commands, each with questionable outcomes:
A) = R.ScriptEvalEx('N', 'q$v1', Var1 as v1) returns an error in Qlik
B) = R.ScriptEvalEx('N', '1:10', Var1 as v1) gives the desired result, but is hard-coded
C) = R.ScriptEvalEx('N', 'saveRDS(q$v1, "test_data.rds"); 1:10', Var1 as v1) returns a column with 1s. In addition, the saved data set on the server is NULL
By the way: I know that I can simply copy the column from within Qlik, but I want to do it using the plugin as my main task is far more complex than the example above.