library(tinytable)
x <- tt(mtcars[1:3, 1:2], caption = "Combine two tiny tables.")
y <- tt(mtcars[4:5, 8:10])
# rbind() does not support additional aarguments
# rbind2() supports additional arguments
# basic combination
rbind(x, y)
rbind(x, y) |> format_tt(replace = "")
# omit y header
rbind2(x, y, headers = FALSE)
# bind by position rather than column names
rbind2(x, y, use_names = FALSE)
Run the code above in your browser using DataLab