Make a pivot table

make_data_tabell(input_dataset, fane, verdier, keep_names, snitt)

Arguments

input_dataset

The dataset that is going to be tabulated

fane

The active tab (for filtering; effect if "dogn", "dag" or "poli")

verdier

Consist of data specific filter values, such as "rader", "kolonner", "aar", "bo", "beh" etc.

keep_names

Tabulate all names in first row

snitt

Add average/sums to the table

Value

pivot Pivot table