make_mock_data: Make mock data for display shells

View source: R/mock_tbl.R

make_mock_dataR Documentation

Make mock data for display shells

Description

Make mock data for display shells

Usage

make_mock_data(tfrmt, .default = 1:3, n_cols = NULL)

Arguments

tfrmt

tfrmt object

.default

Number of unique levels to create for group/label values set to ".default"

n_cols

Number of columns in the output table (not including group/label variables). If not supplied it will default to using the col_plan from the tfrmt. If neither are available it will use 3.

Value

tibble containing mock data

Examples


tfrmt_spec <- tfrmt(
  label = label,
  column = column,
  param = param,
  value=value,
  body_plan = body_plan(
    frmt_structure(group_val=".default", label_val=".default", frmt("xx.x"))
    )
  )

make_mock_data(tfrmt_spec)


GSK-Biostatistics/tlang documentation built on Dec. 11, 2024, 11:16 a.m.