table_fixed_categories: table_fixed_categories

View source: R/CodeAndRoll2.R

table_fixed_categoriesR Documentation

table_fixed_categories

Description

Generate a table() with a fixed set of categories. It fills up the table with missing categories, that are relevant when comparing to other vectors.

Usage

table_fixed_categories(vec, categories_vec, strict = TRUE, v = TRUE)

Arguments

vec

Input vector to be counted.

categories_vec

Fixed list of categories to be counted in your input vector.

strict

Stop or warn if not all values are covered in the categories vector?

v

Verbose. Default: TRUE.

Value

A table with the fixed set of categories.


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.