You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our factor menu is really impressive - that's because one reason why R is so good for data analysis is because of factors.
And forcats is an impressive package for handling factors.
Factors are categorical columns. We need to make using them as simple as possible. Here is an example:
This looks a bit daunting. Notice there are not many variables in the selector, because we only have the factor variables available there. In the example above the corsor is in the Variety variable - which is a factor. So, please could the dialog start with the selected variable in the receiver, if it is a factor. So here the dialog would start as below:
That's clearer. Why not.
I further suggest that if the current variable in the data view (or the metadata view) is not a factor, then the dialog starts with the first factor variable in the selector, copied into the receiver, as shown below.
What is also nice about this scheme, is that occasionally we have data still without factors - and that's often because we have forgotten to make those variable into factors. So now the only reason that the receiver is empty is when there are no factors in the data.
In the factor menu I propose this change (selected variable if a factor pr ordered factor, and first factor otherwise) for the following dialogs that have a single receiver - except 1, namely Unused Levels.
Recode Factor
Dummy Variables
Levels/Labels - this does it nicely from right click already.
Reorder Levels - as shown above
Reference Level
Contrasts
Factor Data Frame
Unused Levels is different. There we check the factors from the selector and fill the receiver with the first factor that has unused levels. If no factors have unused levels then we don't fill the receiver.
The text was updated successfully, but these errors were encountered:
Our factor menu is really impressive - that's because one reason why R is so good for data analysis is because of factors.
And forcats is an impressive package for handling factors.
Factors are categorical columns. We need to make using them as simple as possible. Here is an example:
This looks a bit daunting. Notice there are not many variables in the selector, because we only have the factor variables available there. In the example above the corsor is in the Variety variable - which is a factor. So, please could the dialog start with the selected variable in the receiver, if it is a factor. So here the dialog would start as below:
That's clearer. Why not.
I further suggest that if the current variable in the data view (or the metadata view) is not a factor, then the dialog starts with the first factor variable in the selector, copied into the receiver, as shown below.
What is also nice about this scheme, is that occasionally we have data still without factors - and that's often because we have forgotten to make those variable into factors. So now the only reason that the receiver is empty is when there are no factors in the data.
In the factor menu I propose this change (selected variable if a factor pr ordered factor, and first factor otherwise) for the following dialogs that have a single receiver - except 1, namely Unused Levels.
Unused Levels is different. There we check the factors from the selector and fill the receiver with the first factor that has unused levels. If no factors have unused levels then we don't fill the receiver.
The text was updated successfully, but these errors were encountered: