Learn R Programming

rtables (version 0.4.0)

get_formatted_cells: get formatted cells

Description

get formatted cells

Usage

get_formatted_cells(obj)

# S4 method for TableTree get_formatted_cells(obj)

# S4 method for ElementaryTable get_formatted_cells(obj)

# S4 method for TableRow get_formatted_cells(obj)

# S4 method for LabelRow get_formatted_cells(obj)

Arguments

obj

ANY. The object for the accessor to access or modify

Value

the formatted print-strings for all (body) cells in obj.

Examples

Run this code
# NOT RUN {
library(dplyr)

iris2 <- iris %>%
  group_by(Species) %>%
  mutate(group = as.factor(rep_len(c("a", "b"), length.out = n()))) %>%
  ungroup()

tbl <- basic_table() %>%
  split_cols_by("Species") %>%
  split_cols_by("group") %>%
  analyze(c("Sepal.Length", "Petal.Width"), afun = list_wrap_x(summary) , format = "xx.xx") %>%
  build_table(iris2)

get_formatted_cells(tbl)
# }

Run the code above in your browser using DataLab