svy_compare: svy_compare

Description Usage Arguments Value

View source: R/svy_compare.R

Description

This is a helper function to get counts of how many times each combination of levels of a provided vector of variables appears in the provided dataset. Useful for tracking programmatic logic.

Usage

1
svy_compare(variables, data)

Arguments

variables

Vector of columns from data.

data

A data object that can be either a survey object or other data type.

Value

A data.frame with counts of each possible combination.


tomasokal/surveyhelper documentation built on April 11, 2020, 7:28 a.m.