x <- as.tb('$\\alpha$')
y <- as.tb('aaa')
z <- as.tb('bbb')

hline

Add hlines into the table using hline.

hline expects the lines to add hline to, where 0 is a possible value for lines which a line will be added to the top of the table. When lines are left empty then all the lines will have hline attached to them.

cline

Add clines into the table using hline.

Define where to put in the clines with a spec object. The spec can be either a list or data.frame either of which containing the elements line,i,j, where line is the line to apply the cline, i,j is the starting end ending columns respectivley.

cline expects the lines to add hline to, where 0 is a possible value for lines which a line will be added to the top of the table.

you can also combine hline and cline in a pipe

purrr::reduce(rep(x1,4),`/`)%>%
  hline(c(0,4))%>%
  cline(d)%>%
  tabular()%>%
  texPreview::tex_preview()

Multicol/Multirow

title <- as.tb('param') + multicol('vals',3,'c')

(title / (multirow('$\\beta$',2) + k))%>%
  tabular()%>%
  texPreview::tex_preview()