Skip to contents

Count occurences of variables

Usage

count_occ(.tbl, id_col, col)

Arguments

.tbl

A tibble

id_col

Usually uuid... to count.

col

A column of .tbl

Details

This is solely written to mimic variables names produced by Kobo after use of janitor::clean_names(). Example : variable is a multiple choice variable and variable_choice1 is its count variable of choice 1.