Learn R Programming

rtables (version 0.4.0)

nrow,VTableTree-method: Table Dimensions

Description

Table Dimensions

Usage

# S4 method for VTableTree
nrow(x)

# S4 method for TableRow nrow(x)

# S4 method for VTableNodeInfo ncol(x)

# S4 method for TableRow ncol(x)

# S4 method for LabelRow ncol(x)

# S4 method for InstantiatedColumnInfo ncol(x)

# S4 method for VTableNodeInfo dim(x)

Arguments

x

TableTree or ElementaryTable object

Value

the number of rows (nrow), columns (ncol) or both (dim) of the object.

Examples

Run this code
# NOT RUN {
tbl <- basic_table() %>%
  split_cols_by("ARM") %>%
  analyze(c("SEX", "AGE")) %>%
  build_table(ex_adsl)

dim(tbl)
nrow(tbl)
ncol(tbl)

NROW(tbl)
NCOL(tbl)

# }

Run the code above in your browser using DataLab