powered by
These convenience functions wrap cbind or rbind for huxtables to insert a single row.
cbind
rbind
insert_column(ht, ..., after = 0, copy_cell_props = TRUE)insert_row(ht, ..., after = 0, copy_cell_props = TRUE)
insert_row(ht, ..., after = 0, copy_cell_props = TRUE)
A huxtable.
Cell contents.
Insert the row/column after this position. 0 (the default) inserts as the first row/column.
Copy cell properties from the previous row or column (if after > 0). See cbind.huxtable.
cbind.huxtable
The modified huxtable
# NOT RUN { ht <- hux(1:5, 1:5, 1:5) ht <- insert_row(ht, 2.5, 2.5, 2.5, after = 2) ht ht <- insert_column(ht, 1, 2, 2.5, 3, 4, 5, after = 3) ht # }
Run the code above in your browser using DataLab