Learn R Programming

Tplyr (version 1.2.1)

set_missing_subjects_row_label: Set the label for the missing subjects row

Description

Set the label for the missing subjects row

Usage

set_missing_subjects_row_label(e, missing_subjects_row_label)

Value

The modified count_layer object

Arguments

e

A count_layer object

missing_subjects_row_label

A character to label the total row

Examples

Run this code

t <- tplyr_table(mtcars, gear) %>%
  add_layer(
    group_count(cyl) %>%
      add_missing_subjects_row() %>%
      set_missing_subjects_row_label("Missing")
  )
build(t)

Run the code above in your browser using DataLab