diff --git a/articles/HTML.html b/articles/HTML.html index 86dc5e6..0c8d8e9 100644 --- a/articles/HTML.html +++ b/articles/HTML.html @@ -560,12 +560,12 @@

Fine tuning</style>", doCSS = TRUE) tab - +
@@ -928,33 +928,81 @@

tinytable supportgroup_tt(j = list("Row Label" = 1, "Statistics" = 2:4)) %>% style_tt(i = 3, color = "red", align = "c", line = "bt", line_color = "red") %>% style_tt(i = 5:6, j = 3:4, background = "black", color = "orange") - + - - - -tinytable_h34t7stsbnbucz7eq866 - -
- + function insertSpanRow_h34t7stsbnbucz7eq866(i, colspan, content) { + var table = document.getElementById('tinytable_9dc94va645er44c0k8p3'); + var newRow = table.insertRow(i); + var newCell = newRow.insertCell(0); + newCell.setAttribute("colspan", colspan); + // newCell.innerText = content; + // this may be unsafe, but innerText does not interpret
+ newCell.innerHTML = content; + } + function spanCell_9dc94va645er44c0k8p3(i, j, rowspan, colspan) { + var table = document.getElementById("tinytable_9dc94va645er44c0k8p3"); + const targetRow = table.rows[i]; + const targetCell = targetRow.cells[j]; + for (let r = 0; r < rowspan; r++) { + // Only start deleting cells to the right for the first row (r == 0) + if (r === 0) { + // Delete cells to the right of the target cell in the first row + for (let c = colspan - 1; c > 0; c--) { + if (table.rows[i + r].cells[j + c]) { + table.rows[i + r].deleteCell(j + c); + } + } + } + // For rows below the first, delete starting from the target column + if (r > 0) { + for (let c = colspan - 1; c >= 0; c--) { + if (table.rows[i + r] && table.rows[i + r].cells[j]) { + table.rows[i + r].deleteCell(j); + } + } + } + } + // Set rowspan and colspan of the target cell + targetCell.rowSpan = rowspan; + targetCell.colSpan = colspan; + } +window.addEventListener('load', function () { insertSpanRow_h34t7stsbnbucz7eq866(5, 4, 'Subgroup') }); +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(0, 0, 'tinytable_css_id0osc88ap3nbm6a4m4aw4') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(0, 1, 'tinytable_css_id0osc88ap3nbm6a4m4aw4') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(0, 2, 'tinytable_css_idxw7gp3psf6zhmmp7w13w') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(0, 3, 'tinytable_css_idxw7gp3psf6zhmmp7w13w') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(1, 0, 'tinytable_css_idxw7gp3psf6zhmmp7w13w') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(1, 1, 'tinytable_css_idxw7gp3psf6zhmmp7w13w') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(1, 2, 'tinytable_css_idws8dilfgz1c09znmem2b') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(1, 3, 'tinytable_css_idxw7gp3psf6zhmmp7w13w') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(3, 0, 'tinytable_css_id5qtlhlag21urewyc2eop') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(4, 0, 'tinytable_css_id5qtlhlag21urewyc2eop') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(5, 0, 'tinytable_css_id9ksz09od3p848lv7afn0') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(5, 1, 'tinytable_css_id9ksz09od3p848lv7afn0') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(5, 2, 'tinytable_css_id9ksz09od3p848lv7afn0') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(5, 3, 'tinytable_css_id9ksz09od3p848lv7afn0') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(6, 0, 'tinytable_css_id5qtlhlag21urewyc2eop') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(7, 0, 'tinytable_css_id5qtlhlag21urewyc2eop') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(7, 2, 'tinytable_css_idibl5diu3n6bbzoshnbue') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(7, 3, 'tinytable_css_idibl5diu3n6bbzoshnbue') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(8, 0, 'tinytable_css_id5qtlhlag21urewyc2eop') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(8, 2, 'tinytable_css_idibl5diu3n6bbzoshnbue') }) +window.addEventListener('load', function () { styleCell_9dc94va645er44c0k8p3(8, 3, 'tinytable_css_idibl5diu3n6bbzoshnbue') }) + +
+
@@ -1006,79 +1054,7 @@

tinytable support - newCell.innerHTML = content; - } - function spanCell_tinytable_4olspg8l5gya08tpxs7f(i, j, rowspan, colspan) { - var table = document.getElementById("tinytable_h34t7stsbnbucz7eq866"); - const targetRow = table.rows[i]; - const targetCell = targetRow.cells[j]; - for (let r = 0; r < rowspan; r++) { - // Only start deleting cells to the right for the first row (r == 0) - if (r === 0) { - // Delete cells to the right of the target cell in the first row - for (let c = colspan - 1; c > 0; c--) { - if (table.rows[i + r].cells[j + c]) { - table.rows[i + r].deleteCell(j + c); - } - } - } - // For rows below the first, delete starting from the target column - if (r > 0) { - for (let c = colspan - 1; c >= 0; c--) { - if (table.rows[i + r] && table.rows[i + r].cells[j]) { - table.rows[i + r].deleteCell(j); - } - } - } - } - // Set rowspan and colspan of the target cell - targetCell.rowSpan = rowspan; - targetCell.colSpan = colspan; - } - -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(1, 0, 'tinytable_css_9svyad9jn7scmwhdtt7i') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(1, 1, 'tinytable_css_9svyad9jn7scmwhdtt7i') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(1, 2, 'tinytable_css_9svyad9jn7scmwhdtt7i') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(1, 3, 'tinytable_css_9svyad9jn7scmwhdtt7i') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(1, 2, 'tinytable_css_hqj4w0ioy0lc1w6vygmi') }) -window.addEventListener('load', function () { insertSpanRow_rm6eduyxl0ztaa91o8a0(5, 4, 'Subgroup') }); -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(3, 0, 'tinytable_css_iyyfbwqdbnr38i6fhyqp') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(4, 0, 'tinytable_css_iyyfbwqdbnr38i6fhyqp') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(6, 0, 'tinytable_css_iyyfbwqdbnr38i6fhyqp') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(7, 0, 'tinytable_css_iyyfbwqdbnr38i6fhyqp') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(8, 0, 'tinytable_css_iyyfbwqdbnr38i6fhyqp') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(1, 0, 'tinytable_css_89eecxpavj13sbxk9hgi') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(1, 1, 'tinytable_css_89eecxpavj13sbxk9hgi') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(1, 2, 'tinytable_css_89eecxpavj13sbxk9hgi') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(1, 3, 'tinytable_css_89eecxpavj13sbxk9hgi') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(0, 0, 'tinytable_css_nlop84sllwu67riupt9a') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(0, 1, 'tinytable_css_nlop84sllwu67riupt9a') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(0, 2, 'tinytable_css_nlop84sllwu67riupt9a') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(0, 3, 'tinytable_css_nlop84sllwu67riupt9a') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(0, 0, 'tinytable_css_n30w3ey1d5a61rptry8g') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(0, 1, 'tinytable_css_n30w3ey1d5a61rptry8g') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(5, 0, 'tinytable_css_5qtlhlag21urewyc2eop') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(5, 1, 'tinytable_css_5qtlhlag21urewyc2eop') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(5, 2, 'tinytable_css_5qtlhlag21urewyc2eop') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(5, 3, 'tinytable_css_5qtlhlag21urewyc2eop') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(7, 2, 'tinytable_css_9ksz09od3p848lv7afn0') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(8, 2, 'tinytable_css_9ksz09od3p848lv7afn0') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(7, 3, 'tinytable_css_9ksz09od3p848lv7afn0') }) -window.addEventListener('load', function () { styleCell_tinytable_4olspg8l5gya08tpxs7f(8, 3, 'tinytable_css_9ksz09od3p848lv7afn0') }) - + diff --git a/articles/knitrTables.pdf b/articles/knitrTables.pdf index 191b689..be3f79d 100644 Binary files a/articles/knitrTables.pdf and b/articles/knitrTables.pdf differ diff --git a/pkgdown.yml b/pkgdown.yml index 304b863..9366e69 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -4,7 +4,7 @@ pkgdown_sha: ~ articles: HTML: HTML.html knitrTables: knitrTables.pdf -last_built: 2024-08-22T23:17Z +last_built: 2024-08-29T12:47Z urls: reference: https://dmurdoch.github.io/tables/reference article: https://dmurdoch.github.io/tables/articles

Row Label