Skip to contents

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

Usage

remove_right(pt, n)

# S3 method for pivot_table
remove_right(pt, n)

Arguments

pt

A pivot_table object.

n

A number, number of columns to remove.

Value

A pivot_table object.

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.

This function is very useful because it is not necessary to know the number of columns in the table.

See also

Examples


pt <- pt_ex |> remove_right(3)