--- title: "Column Reordering & Anchoring" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Column Reordering & Anchoring} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8}
knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
dtsmartr v0.3.0 introduces horizontal layout enhancements designed to make scanning, referencing, and organizing variables within large tables effortless.
When exploring datasets with high dimensionality (such as laboratory clinical tables containing over 100 columns), you often need to keep key identifiers (like USUBJID or VISIT) persistently visible while scrolling.
3px solid #3b82f6) is painted along the right edge of the anchor column (synced across both the headers and body rows).⚓ button on the boundary column again to release the freeze lock.Rearrange your table sequence directly in the UI without modifying your R code:
Lock specific subjects, outliers, or records to the top of the table viewport for continuous reference:
📌 pin icon in the index column.Test all three features in the live interactive grid below!
1. Try dragging the cyl column card and dropping it before the mpg column card.
2. Click the ⚓ button on the disp column header to freeze mpg, cyl, and disp to the left. Then scroll the table horizontally.
3. Click the row index 2 on the far-left to pin the second row to the top.
library(dtsmartr) dtsmartr(mtcars)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.