A Calculation is an item on the page that is created using R code. Some Calculations are built-in analyses and visualizations from the menu. You can also create custom Calculations to create custom outputs on a page. Calculations are denoted with a small R icon in the Pages pane, and will always have Properties > R CODE in the object inspector.
Technical details
The roles of Calculations in Displayr
A Calculation performs two related roles within Displayr. They can be used as:
- An output to be displayed in the Report -- that is, the results of a calculation appear on a Page.
- An input to other items -- typically for this, they will be values or a table that can be referred to by other Calculations and Variables constructed using R.
Creating a Calculation
Calculations are created by:
- Selecting Calculation > Custom Code and entering code in the R CODE box in the Object Inspector and pressing Calculate.
- Choosing options from the menus, many of which are the results of Calculations.
See, How to Use R in Displayr for more detail.
Appearance of a Calculation
A Calculation can appear as different types, see Calculation Types.
Reference
From the Displayr release of the 7th June 2021, an R Output is referred to as a Calculation or Custom Calculation.