stack_resp: stack_resp() produces a frequency table with percentages...

View source: R/stack_resp.R

stack_respR Documentation

stack_resp() produces a frequency table with percentages where items are rows, responses are attributes of items, and percentages are presented for each response.

Description

stack_resp() produces a frequency table with percentages where items are rows, responses are attributes of items, and percentages are presented for each response.

Usage

stack_resp(x)

Arguments

x

a data frame, where rows = observations, and columns = variables

Value

data frame with a frequency table

Examples



items_data <- dplyr::select(data_frame, item_1:item_9)
stack_resp(items_data)


dacarras/r4sda documentation built on Nov. 9, 2023, 10:17 a.m.