Allow for the user to select alternatives from Control Box
J
Jan Jesenovec
A user sets a TURF output linked to Control Boxes, allowing users to select alternatives to include.
We also amended the TURF R code to count the number or alternatives selected and change the portfolio size when.
To do this we made the below changes to the R code.
output$dat = output$dat[,ComboBox.96]
dat <- output$dat
alternative.names <- names(dat)
size = if (formSize < length(ComboBox_name)) formSize else length(ComboBox_name)
turf <- flipTURF::TURF(data = dat,
subset = QFilter,
weight = QPopulationWeight,
portfolio.size = size,...