remove_rows | R Documentation |
Remove the rows whose numbers are indicated from the pivot table represented by the object.
remove_rows(pt, r)
## S3 method for class 'pivot_table'
remove_rows(pt, r)
pt |
A |
r |
A vector of numbers, row numbers. |
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 header or footer information, which must be removed.
A pivot_table
object.
pivot_table
Other pivot table transformation functions:
extract_labels()
,
fill_labels()
,
fill_values()
,
remove_agg()
,
remove_bottom()
,
remove_cols()
,
remove_empty()
,
remove_k()
,
remove_left()
,
remove_right()
,
remove_top()
,
replace_dec()
,
unpivot()
pt <- pt_ex |> remove_rows(1)
pt <- pt_ex |> remove_rows(c(1, 8, 14, 19, 25, 26))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.