trimws | R Documentation |
See the original description in base::trimws
.
trimws(x, which = c("both", "left", "right"))
# get function from namespace instead of possibly getting # implementation shipped with recent R versions: bp_trimws = getFromNamespace("trimws", "backports") bp_trimws(c(" a ", "b ", " c")) bp_trimws(c(" a ", "b ", " c"), which = "left")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.