Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
linjiao2c
Partner - Contributor II
Partner - Contributor II

Ignore Filters in R.ScriptAggrExStr

Hi, I am using R.ScriptAggrExStr to draw a decision tree.

Now I want put 2 trees (tree A/B) and a filter pane in one page, tree A can change by filter, while tree B will not.

But I don't know how to lock the variables.

E.g. my expression is:

R.ScriptAggrExStr('SNSN','

library(rpart);

library(partykit);

library(d3r);

library(grid);

library(jsonlite);

d3_party(rpart(survived ~ ., data=q, method="class"));

',

sex, pclass, age_b, survived)

How can I lock sex/pclass/age_b/survive  to make them not change by filter?

0 Replies