| lt_merge | R Documentation |
Combine values from multiple columns into a single display column using a pattern. Source columns (all except the first) are hidden by default.
lt_merge(x, columns, pattern = NULL, hide = TRUE)
x |
An |
columns |
Character vector of column names (or a one-sided formula). The first column is the target (receives merged content); the rest are sources. |
pattern |
A glue-style template using |
hide |
If |
x with the merge recorded.
d = data.frame(stat = c("Mean", "SD"), value = c(4.2, 1.1), ci = c("(2.0, 6.4)", "(0.5, 1.7)"))
lt(d) |> lt_merge(~ value + ci, pattern = "{1} {2}")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.