| lt_sub | R Documentation |
Replace NA, zero, or small values with display text.
lt_sub(
x,
columns = NULL,
missing = NULL,
zero = NULL,
small = NULL,
small_text = NULL
)
x |
An |
columns |
Character vector of column names, a one-sided formula, or
|
missing |
Replacement for |
zero |
Replacement for zero values (e.g., |
small |
Threshold: values whose absolute value is below this are
replaced by |
small_text |
Text shown for values below |
x with the substitution recorded.
d = data.frame(x = c(1, 0, NA, 0.001))
lt(d) |> lt_sub(missing = "—", zero = "—", small = 0.01, small_text = "<0.01")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.