jasp-issues
jasp-issues copied to clipboard
Variable/column sorting by ascending and descending values
Description
Sorting variables by ascending or descending values
Purpose
Data exploration
Use-case
Sorting z scores
Is your feature request related to a problem?
Jasp is not able to sort variable/column values
Is your feature request related to a JASP module?
Descriptives
Describe the solution you would like
Being able to sort numerical variables in ascending or descending order
Describe alternatives that you have considered
doing the sorting with the JASP / R Console
Additional context
When computing z scores, a visual examination of the dataset is interesting. It would be easier if the user could reorder the dataset to examine individual participants according to this sorting (e.g. sorting z scores in ascending or descending order).
I manage to use the R Console to list z scores, e.g.
**
data$Z.VARIABLE[order(data$Z.VARIABLE)]
**
This is however unpractical with a large dataset, where the ability to use the Data Editor would be a better choice.
Maybe I am missing something and this option is already available ?
We should totally add this, it will be coming in the near future
This is great news, thank you
@chantelanuit Can you have a look, if this is a duplicate of https://github.com/jasp-stats/jasp-issues/issues/2247
I am not sure if you need this in data view or for tables in result view.
I was interpreting this issue as being about the data-viewer
This is now in progress for latest 0.19beta via right click on the variable name. The button is already there, but it does nothing yet.
This is now in progress for latest 0.19beta via right click on the variable name. The button is already there, but it does nothing yet.
Ah that button sorts the labels, not the data. I suppose your interpretation is the correct one, im afraid the sorting of the dataviewer is something on the radar for a bit later.
I need to make some changes to the datamodel, so this will have to be post 0.19 Ill remove the button for now though to avoid confusion.
@JorisGoosen
When I click "order by values" in the new beta, nothing happens, neither to values nor for labels.
Terminal says:
qrc:/components/JASP/Widgets/DataTableView.qml:137: TypeError: Property 'columnOrderByValues' of object DataSetView(0x562a6cc7d130) is not a function
And yes, its name should be "order by labels" then. Could be useful.
Well, Ive just removed it entirely from there, because it isnt as useful as the "reverse values".
Although it is maybe useful, perhaps I can find a better phrasing
Ive fixed it, put it back in and called it "Order labels by values" because that is what is happening.