summary_table_all: Create a tidy summary table of all items

View source: R/LikertEZ.R

summary_table_allR Documentation

Create a tidy summary table of all items

Description

This function generates a tidy summary table for all ordinal items in a data.frame. The table includes statistics such as mean, median, standard deviation, counts, and percentages.

Usage

summary_table_all(data, max_scale = 5, scale_labels = NULL, decimals = 2)

Arguments

data

A data.frame of ordinal items.

max_scale

Max value on the Likert scale (default: 5).

scale_labels

Optional vector of labels for each scale point.

decimals

Number of decimal places for percentages (default: 2).

Value

A data.frame with summary statistics for all items.

Examples

dat <- data.frame(Q1 = c(1, 2, 3, 4, 5), Q2 = c(2, 2, 3, 4, NA))
summary_table_all(dat)

LikertEZ documentation built on April 3, 2025, 11:27 p.m.