IDEMSInternational / R-Instat

A statistics software package powered by R
http://r-instat.org/
GNU General Public License v3.0
38 stars 102 forks source link

Add scalars to the Prepare > Column: Numeric > Enter dialog? #9023

Closed rdstern closed 1 day ago

rdstern commented 2 weeks ago

@N-thony I hope this will be a quick task - and also a good test of the extent to which the scalars have been well coded. Here is the current Calculator dialog - with scalars: image

And here is the current Enter Dialog:

image

Could we add the scalar checkbox here as well? Maybe the top one in the calculator goes below the keyboard in Enter. If checked, then the Scalars are shown, just as in the calculator. There is also the same code for the Save Scalar checkbox as in the calculator.

N-thony commented 1 week ago

@N-thony I hope this will be a quick task - and also a good test of the extent to which the scalars have been well coded. Here is the current Calculator dialog - with scalars: image

And here is the current Enter Dialog:

image

Could we add the scalar checkbox here as well? Maybe the top one in the calculator goes below the keyboard in Enter. If checked, then the Scalars are shown, just as in the calculator. There is also the same code for the Save Scalar checkbox as in the calculator.

@rdstern does this mean we should change the selector to display variables as in the Calculator? Also, what is the difference between the Calculator and Enter dialogues? They seem to do the same thing?

rdstern commented 1 week ago

@N-thony no we should not display variables in the Enter dialog. It is to enter values into a new column, not to manipulate variables. But we could usefully enter and also use scalars. So, when scalars are checked, then it shows the scalars - just as in the calculator. Otherwise, as now, it shows just the data frame NOT the variables. So don't bother with the Add button or the Data Options.

By the way I like @rachelkg suggestion on a different position for the same sclar checkbox - here, and on the calculator.