powered by
Calculations on tables
tableNrow(table)tableNcol(table)tableDim(table)
tableNcol(table)
tableDim(table)
tableNrow() returns the number of rows in the table.
tableNrow()
tableNcol() returns the number of columns in the table.
tableNcol()
tableDim() returns the number of rows and columns in the table.
tableDim()
A known tabular-like environment object.
latex <- kableExtra::kbl(mtcars[1:2, 1:3], format = "latex") parsed <- parseLatex(latex) table <- parsed[[find_tabular(parsed)]] table tableNrow(table) tableNcol(table) tableDim(table)
Run the code above in your browser using DataLab