remove_bottom | R Documentation |
Remove bottom rows from the pivot table represented by the object.
remove_bottom(pt, n)
## S3 method for class 'pivot_table'
remove_bottom(pt, n)
pt |
A |
n |
A number, number of rows to remove. |
A pivot table should only contain label rows and columns, and an array of values, usually numeric data.
All rows not belonging to the pivot table must be removed. It is common to find rows with footer information, which must be removed.
This function is very useful because it is not necessary to know the number of rows in the table.
A pivot_table
object.
pivot_table
Other pivot table transformation functions:
extract_labels()
,
fill_labels()
,
fill_values()
,
remove_agg()
,
remove_cols()
,
remove_empty()
,
remove_k()
,
remove_left()
,
remove_right()
,
remove_rows()
,
remove_top()
,
replace_dec()
,
unpivot()
pt <- pt_ex |> remove_bottom(3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.