tablecalcs | R Documentation |
Calculations on tables
tableNrow(table)
tableNcol(table)
tableDim(table)
table |
A known tabular-like environment object. |
tableNrow()
returns the number of rows in the table.
tableNcol()
returns the number of columns in the table.
tableDim()
returns the number of rows and columns in the table.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.