make_mock_data {tfrmt}R 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)


[Package tfrmt version 0.1.2 Index]