

To remove everything inside the box at once, simply double-click the bin. Finally, click on Compute column to apply your formula.Ī nice feature of the drag and drop interface in JASP - accessible when computing columns as well as creating filters - is that if you made a mistake while assembling your formula (i.e., using the wrong variable or operator), you can remove the item by dragging it into the bin in the bottom right corner. As can be seen in the GIF below, this can also be done by clicking instead of dragging. We drag ‘Moon’ into the equation box, drag the ‘minus’ sign down and then drag in ‘Other’. Now, the mathematical operation needs to be defined.

Once you have entered the Drag and Drop Column Creator, the name of your new variable will appear in the spreadsheet window. We want to create a column of data showing the difference between those two variables.
#Rcode creator full#
The two variables show the average number of disruptive behaviors of dementia patients during full moon days (‘Moon’) and other days (‘Other’). The box in the middle is where new columns can be computed.įor our first example, we are going to use the Moon and Aggression data set ( Data Library -> T-Tests). You can scroll the left and right hand options to see more variables or more functions, respectively. Above the box, there is a selection of various mathematical operators, and on the right hand side, a selection of transformations. On the left hand side, you can see all variables in your data set, including the column you have just added. If you have used JASP’s filtering functionality before, this probably looks familiar to you. After clicking create, the drag and drop interface appears.

To create a column with the drag and drop interface, select the hand icon when setting up the new variable as shown above. To illustrate their use, we will take a couple of data sets from the JASP Data Library. The compute-columns functionality in JASP has two interfaces: the Drag and Drop Column Creator and the R Column Creator. Next you can click create to start computing your new variable.
#Rcode creator code#
#Rcode creator how to#
This post demonstrates how to use this new functionality by going over a few examples. One of our latest releases, JASP 0.9.1, came with an exciting new feature: the ability to compute new variables.
