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"
)

Beispieltabelle

1. Fach
N = 1 (50%)1

2. Fach
N = 1 (50%)1

Gesamt
N = 21

Studiengang

Studiengang A

1 (100%)

0 (0%)

1 (100%)

Studiengang B

0 (0%)

1 (100%)

1 (100%)

1n (%)