| insert_column {huxtable} | R Documentation |
These convenience functions wrap cbind or rbind for huxtables to insert
a single row.
insert_column(ht, ..., after = 0, copy_cell_props = TRUE) insert_row(ht, ..., after = 0, copy_cell_props = TRUE)
ht |
A huxtable. |
... |
Cell contents. |
after |
Insert the row/column after this position. 0 (the default) inserts as the first row/column. |
copy_cell_props |
Copy cell properties from the previous row or column (if after > 0). See |
In insert_column only, you can use a column name for after.
The modified huxtable
ht <- hux(a = 1:5, b = 1:5, c = 1:5) insert_row(ht, 2.5, 2.5, 2.5, after = 2) insert_column(ht, 5:1) insert_column(ht, 5:1, after = 3) insert_column(ht, 5:1, after = "b")