When you create standard tables in Displayr by dragging and dropping variable sets onto the Page, there are options to add either Statistics > Right or Statistics > Below to your tables, such as Average, Column Sample Size, and Row Sample Size. These statistics cannot be referenced in R without some additional code.
In this example, note that the table has the Average added as a Statistic - Below.
When accessing the Below statistics via R, it will return the following information. Note that because there is only a single statistic, the data is a vector (subset by [ row ]) versus a matrix with multiple columns (subset by [ row, column ]).
Requirements
You will need a table that has a statistic from Statistics > Right or Statistics > Below applied.
Method
1. In the toolbar select Calculation > Custom Code.
2. Click on the page to insert the object.
3. In the code editor, paste the following:
x <- my.table.name
attr(x, "Below")
4. Replace my.table.name with the reference name of the table in the document that you're working with.
To get the values from Statistics > Right replace the last line of the above code with:
attr(x, "Right")