do_count: Tabulate Yes/No entries in one or more columns.

Description Usage Arguments Value

View source: R/do_count.R

Description

This function takes a data frame and defined list of columns (optionally one) and summarises the numbers of Yes/No in a table.

Usage

1
2
3
4
5
6
7
8
9
do_count(
  this_data,
  this_var,
  missing_value = "Missing",
  these_levels = c("Yes", "No", "Missing"),
  missing_data_limit = 10,
  this_function = NA,
  key_for_variables = glossary.key
)

Arguments

this_data

The tibble in which the column exists.

this_var

The column name (if not a quosure, error will be thrown). Also defines the order of the rows.

missing_value

The text to use for missing (i.e., "") entries (default is Missing)

these_levels

Which levels to display (default = Yes/No/Missing).

missing_data_limit

Print warning for any result showing at least this percentage of missing data.

this_function

A label for error/warning messages (by default it is the name of this function).

key_for_variables

Glossary to use for parameters.

Value

Counts of levels in the factor.


LisaHopcroft/CTutils documentation built on Oct. 7, 2021, 11:08 p.m.