remove_left: Remove left columns from a pivot table

View source: R/pivot_table.R

remove_leftR Documentation

Remove left columns from a pivot table

Description

Remove left columns from the pivot table represented by the object.

Usage

remove_left(pt, n)

## S3 method for class 'pivot_table'
remove_left(pt, n)

Arguments

pt

A pivot_table object.

n

A number, number of columns to remove.

Details

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

All columns not belonging to the pivot table must be removed.

Value

A pivot_table object.

See Also

pivot_table

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

Examples


pt <- pt_ex |> remove_left(3)


flattabler documentation built on Sept. 15, 2023, 1:06 a.m.