unite.tbl | R Documentation |
Convenience function to paste together multiple columns into one in a {dbplyr}
lazy table.
unite.tbl(data, col, ..., sep = "_", remove = TRUE, na.rm = FALSE)
data |
A |
col |
The name of the new column, as a string or symbol. This argument is passed by expression and supports
quasiquotation (you can unquote strings
and symbols). The name is captured from the expression with
|
... |
< |
sep |
Separator to use between values. |
remove |
If |
na.rm |
If |
The data frame, with additional column created
https://stackoverflow.com/a/76013501/8519200
## Not run:
df -> unite.tbl(
united_col,
col_1, col_2,
sep = " ", remove = FALSE, na.rm = TRUE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.