- Stacking (Rows): Select multiple variables to stack them vertically (e.g., creating a demographic profile section).
- Nesting (Columns): Select multiple grouping variables to create hierarchical headers (e.g., Gender > Age Group).
- Weighting: Built-in support for survey weights (
tab_weight). - Statistics: Easily toggle Counts, Column Percentages, and Row Percentages.
- Total Control: Configure the label and position (Top/Bottom/None) of Total rows/columns.
- Output: Generates formatted HTML tables directly in the RKWard output window.
The interface is fully localized to match your RKWard language settings:
- 🇺🇸 English (Default)
- 🇪🇸 Spanish (
es) - 🇫🇷 French (
fr) - 🇩🇪 German (
de) - 🇧🇷 Portuguese (Brazil) (
pt_BR)
- RKWard: 0.7.5 or higher.
- R Packages:
expssmagrittr(for piping%>%)
- Open R in RKWard.
- Run the following commands in the R console:
local({
## Preparar
require(devtools)
## Computar
install_github(
repo="AlfCano/rk.ctables"
)
## Imprimir el resultado
rk.header ("Resultados de Instalar desde git")
})- Restart RKWard to ensure the new menu items appear correctly.
The plugin relies on Variable Labels to produce professional tables (just like SPSS). Without labels, the table will show raw variable names (e.g., sex) instead of "Gender".
Copy and run this code in your RKWard console to load the penguins dataset and apply labels:
# Load data (Included in R 4.5+ or package palmerpenguins)
data("penguins")
# Apply Labels (expss uses these for the table headers)
library(expss)
penguins = apply_labels(penguins,
species = "Penguin Species",
island = "Island Location",
bill_length_mm = "Bill Length (mm)",
sex = "Gender",
year = "Study Year"
)Create a summary table showing multiple variables stacked vertically.
- Navigate to Analysis > Custom Tables (expss) > Custom Table Builder.
- Rows (Stacked): Select
speciesANDisland. - Columns: Leave empty (defaults to Total).
- Statistics: Check Counts (Cases) and Column Percent %.
- Click Submit.
- Result: A vertical table showing the distribution of Species, followed immediately by the distribution of Islands.
Compare groups side-by-side.
- Rows: Select
species. - Columns: Select
sex. - Statistics: Check Column Percent %.
- Click Submit.
- Result: A standard crosstab showing Species distribution broken down by Gender.
Create a highly detailed table by nesting grouping variables.
- Rows: Select
species. - Columns: Select
sexANDyear. - Statistics: Check Counts and Column Percent %.
- Total Position: Select After (Right/Bottom).
- Click Submit.
- Result: A wide table where "Male" and "Female" are the main headers, and each gender is further subdivided by "2007", "2008", and "2009".
Alfonso Cano Robles
- Email: alfonso.cano@correo.buap.mx
Assisted by Gemini, a large language model from Google.