separate_rows.ir | R Documentation |
ir
object into multiple rowsSeparate a collapsed column in an ir
object into multiple rows
separate_rows.ir(data, ..., sep = "[^[:alnum:].]+", convert = FALSE)
data |
An object of class |
... |
< |
sep |
Separator delimiting collapsed values. |
convert |
If |
data
with a collapsed column separated into multiple rows. See
tidyr::separate_rows()
.
tidyr::separate_rows()
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()
,
slice
,
summarize
,
unite.ir()
## separate_rows
ir_sample_data |>
tidyr::unite(
col = content, holocellulose, klason_lignin
) |>
tidyr::separate_rows(
col
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.