Native Displayr tables are created by dragging variable sets from a data set onto a page or by using Insert a table > Table from Data Set. These tables can be modified by:
- Combing categories on the table.
- Changing the Data > Properties > Structure of the variable sets used in the table.
- Applying rules.
- Changing the selected Data > Statistics showing on the table.
Displayr's native tables are almost always much, much faster than tables created by writing code or by choosing the specialty tables from the Insert a table menu. This is an example of the more general Use Displayr's In-Built Features (Instead of Writing Code).
Worked example
The table on the left is a native Displayr table. Each table summarizes 18 nominal (binary) variables for a sample of 1,000 people. The table on the right was created using R code.
In pretty much every way imaginable, the native Displayr table is superior:
- The Displayr table took less than 0.01 seconds to calculate. The table on the right took 0.41 seconds (this is due to the overhead discussed in Reduce the Number of Calculations in a Document).
- The table on the left was created by a single drag of the data onto the page. The table on the right was created using the following code. The time taken to learn enough R to write such code is non-trivial.
t(prop.table(sapply(Satisfaction, table), 2)*100)
- The table on the left has automatic statistical testing.
- The table on the left can be filtered. The table on the right would have to have its code modified.
- The table on the left has a caption.