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
ctrl/cmd+enter should run r code
also adds is.na to constructors
just replace the DEFAULT_FILTER define with the correct function calls and see what happens
make filter error show up again...
fix statusbar jasp-stats/INTERNAL-jasp#2462
slightly less computersciency tooltip
Copy file name to clipboardExpand all lines: Desktop/components/JASP/Widgets/ComputeColumnWindow.qml
+12
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,17 @@ FocusScope
121
121
property bool changed: text !=computedColumnsInterface.computeColumnRCode
122
122
123
123
KeyNavigation.tab: applyComputedColumnButton
124
+
125
+
126
+
Keys.onReturnPressed: (keyEvent) => {
127
+
if(keyEvent.modifiers&Qt.ControlModifier)
128
+
{
129
+
if(changedSinceLastApply)
130
+
computedColumnContainer.applyComputedColumn()
131
+
}
132
+
else
133
+
keyEvent.accepted=false
134
+
}
124
135
}
125
136
126
137
@@ -190,6 +201,7 @@ FocusScope
190
201
ListElement { type:"function"; friendlyFunctionName:""; functionName:"replaceNA"; functionParameters:"column,replaceWith"; functionParamTypes:"string:boolean:number,string:boolean:number"; toolTip:qsTr("replace any missing values (NA) in column by the value in replaceWith") }
ListElement { type:"function"; friendlyFunctionName:""; functionName:"hasSubstring"; functionParameters:"string,substring"; functionParamTypes:"string,string"; toolTip:qsTr("returns true if string contains substring at least once") }
204
+
ListElement { type:"function"; friendlyFunctionName:""; functionName:"is.na"; functionParameters:"y"; functionParamTypes:"string:number:boolean"; toolTip:qsTr("returns a boolean vector with TRUE for each missing value in y") }
193
205
194
206
ListElement { type:"separator" }
195
207
ListElement { type:"function"; friendlyFunctionName:""; functionName:"normalDist"; functionParameters:"mean,sd"; functionParamTypes:"number,number"; toolTip:qsTr("generates data from a Gaussian distribution with specified mean and standard deviation sd") }
ListElement { type:"function"; friendlyFunctionName:""; functionName:"hasSubstring"; functionParameters:"string,substring"; functionParamTypes:"string,string"; toolTip:qsTr("returns true if string contains substring at least once") }
131
+
ListElement { type:"function"; friendlyFunctionName:""; functionName:"is.na"; functionParameters:"y"; functionParamTypes:"string:number:boolean"; toolTip:qsTr("Combine with not-operator to filter out rows with missing values (NA) for a column.") }
131
132
}
132
133
133
134
functionaskIfChanged(closeFunc)
@@ -358,6 +359,16 @@ FocusScope
358
359
359
360
property bool changedSinceLastApply: text !==filterModel.rFilter
0 commit comments