| unite.ir | R Documentation |
ir object into one by pasting strings togetherUnite multiple columns in an ir object into one by pasting strings together
unite.ir(data, col, ..., sep = "_", remove = TRUE, na.rm = FALSE)
data |
An object of class |
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 |
.data with united columns. If the spectra column is
dropped or invalidated (see ir_new_ir()), the ir class is dropped, else
the object is of class ir.
tidyr::unite()
Other tidyverse:
arrange.ir(),
distinct.ir(),
extract.ir(),
filter-joins,
filter.ir(),
group_by,
mutate,
mutate-joins,
nest,
pivot_longer.ir(),
pivot_wider.ir(),
rename,
rowwise.ir(),
select.ir(),
separate.ir(),
separate_rows.ir(),
slice,
summarize
## unite
ir_sample_data |>
tidyr::separate(
"id_sample", c("a", "b", "c")
) |>
tidyr::unite(id_sample, a, b, c)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.