rm_all_colcounts: Set all column counts at all levels of nesting to NA

rm_all_colcountsR Documentation

Set all column counts at all levels of nesting to NA

Description

Set all column counts at all levels of nesting to NA

Usage

rm_all_colcounts(obj)

## S4 method for signature 'VTableTree'
rm_all_colcounts(obj)

## S4 method for signature 'InstantiatedColumnInfo'
rm_all_colcounts(obj)

## S4 method for signature 'LayoutColTree'
rm_all_colcounts(obj)

## S4 method for signature 'LayoutColLeaf'
rm_all_colcounts(obj)

Arguments

obj

(ANY)
the object for the accessor to access or modify.

Value

obj with all column counts reset to missing

Examples

lyt <- basic_table() %>%
  split_cols_by("ARM") %>%
  split_cols_by("SEX") %>%
  analyze("AGE")
tbl <- build_table(lyt, ex_adsl)

# before
col_counts(tbl)
tbl <- rm_all_colcounts(tbl)
col_counts(tbl)

rtables documentation built on June 27, 2024, 9:06 a.m.