fill_values {flattabler}R Documentation

Fill in missing values

Description

Fills with NA missing values in a pivot table value array.

Usage

fill_values(pt)

## S3 method for class 'pivot_table'
fill_values(pt)

Arguments

pt

A pivot_table object.

Details

A pivot table should only contain label rows and columns, and an array of values, usually numeric data.

To correctly carry out this operation, the number of rows and columns that contain labels must be defined, and the table must only contain the pivot table rows and columns.

Value

A pivot_table object.

See Also

pivot_table

Other pivot table transformation functions: extract_labels(), fill_labels(), remove_agg(), remove_bottom(), remove_cols(), remove_empty(), remove_k(), remove_left(), remove_right(), remove_rows(), remove_top(), replace_dec(), unpivot()

Examples


pt <-
  pt_ex |>
  remove_top(1) |>
  define_labels(n_col = 2, n_row = 2) |>
  fill_values()


[Package flattabler version 2.1.2 Index]