tabulate_data: Construct tables from a tabulate data structure.

Description Usage Arguments Value

View source: R/tabulate_data.R

Description

Taking a data structure with labels and parameters this function will return a tidy tibble that is a breakdown of responses to each question within the structure. These tables can be weighted or segmented by providing the columns and can also contain a Base column which is useful for indexing.

Usage

1
2
tabulate_data(x, weights = NULL, segments = NULL, filterNA = TRUE,
  addBase = FALSE)

Arguments

x

tabulate data structure with labels and tabulate parameters

weights

weights column

segments

segments column(s)

filterNA

boolean indcating whether NA's are filtered prior to percentage calculation

addBase

boolean indicating whether a column "Base" should be added

Value

Tidy tibble containing the response to questions


OpenSourceMindshare/surveytools documentation built on Aug. 14, 2019, 10:38 a.m.