Computed Columns

Adding a Computed Column

When you have the dataview of JASP in front of you then in the top-right corner there should be a '+'-symbol. When you click this it opens a dialog that lets you create a computed column, you are required to enter a valid and unused column name for it.

You can choose whether you want to define it through R code or through the drag & drop constructor, similar to those used in filtering.

The initial type for your column can be selected as well. This can be changed at any later point anyway, just like the other columns (through the type dropdown menu from the columnheader icon).

Using Drag & Drop Constructor

Computing new data using the Drag & Drop constructor is quite straight-forward, especially if you've already used it for filtering. Still, some examples follow:

Using R

Computing new data using R is quite straightforward, you can use many standard functions and can refer to other columns through name.

Some examples:

There are of course many possibilities and you are only limited by the availability of (safe) functions in JASP. Should you miss something than don't hesitate to contact us so we may add it to the next version.