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

Maybe Improve our right-click Convert to Numeric for logical variables #8917

Closed rdstern closed 5 days ago

rdstern commented 3 months ago

@N-thony I hope you can investigate and fix this. It should be simple, but may become a bit of R that needs @lilyclements ?

Here is an example. a) New data frame - 20 rows, press Ok. b) Calculator with x1 > 10 to make x2 a logical variable. c) Right-click and Duplicate Column (keep the type the same) to make x21. d) Right click on x21and Convert to numeric and it complains that values are not numeric. If I then do Ordinal Convert then I think all is ok. (And is the same as Duplicate Column and convert there.)

I would like it to do this automatically to numeric and not complain.

e) Now duplicate x2 again, and this time make the new variable a factor. f) Right-click on this new variable and Convert to Numeric. Here is the very odd message:

image

Again, I think Ordinal Convert does the right thing. I would like that conversion to be automatic - without the popup menu at all in either case.