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

Improving the calculator transform dialog - mainly! #8958

Open rdstern opened 2 months ago

rdstern commented 2 months ago

@Fidel365 At the same time there is one small improvement to the complex keyboard.

a) Currently it is given as complex( ) without parameters and fully when with parameter. Instead could it be given as complex(real= ,imaginary= ), when there are no parameters and with the cursor in the space after the first equal sign. b) Then there is an important change (maybe more later) in the transform keyboard. Here is the current keyboard:

image

You may want to do (or at least start) the new Functions keyboard (issue #8905) before making the changes suggested below. That's because I have suggested there that the fractions and decimals keys move to that new keyboard.

Then move the scale key down to the current place of the fractions key. And then add a new key called rank, which is the rank command from base R. It can be just rank( ) without parameters and as described in the R documentation when there are parameters. The tooltip is "ranks. For example rank(15,11,13,12, NA, 12) = (5, 1, 4, 2.5, 6, 2.5)

c) In the tooltip for sort could you add "Use only with extreme care." to the start of the tooltip. d) Could you swap the position of the m-rank and the %-rank keys in row 5 of the keyboard. e) Could you change the name rev to reverse
f) In the code for the 2 keys %-rank and cume_distribution, could you please add * 100 to the formula. (They currently give proportions and this turns them into percentages.) g) Add a rescale key in the place of the current decimals key. Without arguments it gives scales::rescale( ,na,rm = TRUE). With arguments it gives scales::rescale( , to = c(0,1), na.rm=TRUE) The tooltip is Transforms to (0, 1) scale, using (x - min)/(max - min) .
h) In the R-help drop down, after MASS, add the scales package.