See the original description in base::trimws
.
1 |
1 2 3 4 5 6 | # 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")
|
[1] "a" "b" "c"
[1] "a " "b " "c"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.