glue | R Documentation |
glue()
is a shortcut of stringr::str_glue()
without trimming.
str_c_coalesce()
tries stringr::str_c()
first,
and falls back to dplyr::coalesce()
.
rsplit()
splits a string from right.
as_chr()
converts expr into character vector.
as_code()
converts a vector into R code that generates it.
glue(..., .sep = "", .envir = parent.frame())
glue_data(.x, ..., .sep = "", .envir = parent.frame(), .na = "NA")
str_c_coalesce(..., sep = "", collapse = NULL)
rsplit(string, pattern = "\\s+", n = 42L)
as_chr(...)
as_code(x)
... |
expressions |
.sep , sep |
[ |
.envir |
[ |
.x |
[ |
.na |
[ |
collapse |
Optional string used to combine output into single
string. Generally better to use |
string |
Input vector. Either a character vector, or something coercible to one. |
pattern |
Pattern to look for. The default interpretation is a regular expression, as described in
Match a fixed string (i.e. by comparing only bytes), using
Match character, word, line and sentence boundaries with
|
n |
Maximum number of pieces to return. Default (Inf) uses all possible split positions. For |
x |
vector |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.