Skip to contents

Get formatted flextable of student cases

Usage

rub_table_stg(df, label)

Arguments

df

Data frame with columns studiengang, studienfachzaehler, faelle

label

Label for the first column

Value

Formatted Flextable

Illustrations

Examples

rub_table_stg(
  df = tibble::tribble(
    ~studiengang, ~studienfachzaehler, ~faelle,
    "Studiengang A", "1. Fach", 1,
    "Studiengang B", "2. Fach", 1
  ),
  label = "Beispieltabelle"
)
#> a flextable object.
#> col_keys: `label`, `stat_1`, `stat_2`, `stat_0` 
#> header has 1 row(s) 
#> body has 3 row(s) 
#> original dataset sample: 
#>           label   stat_1   stat_2   stat_0
#> 1   Studiengang     <NA>     <NA>     <NA>
#> 2 Studiengang A 1 (100%)   0 (0%) 1 (100%)
#> 3 Studiengang B   0 (0%) 1 (100%) 1 (100%)