Description Usage Arguments Details Value Author(s) Examples
Mimics tidyr::unite using base R and rlang
1 |
data |
data.frame |
col |
character, name of the new column |
... |
columns to combine |
sep |
character, separator to use between values, Default: '_' |
remove |
boolean, if TRUE remove input columns from output object, Default: TRUE |
the main difference between this lite version and the tidyr version is that the new column is attached to the end of the data.frame and not before the index of the first column that is to be united. Since this is mainly aesthetic it was not transfered over.
data.frame
Jonathan Sidi
1 2 3 4 5 6 7 8 | b_unite(airquality, col = "month_day", columns = c(Month,Day))%>%
head
b_unite(airquality, col = "temp_month_day", columns = c(Temp:Day))%>%
head
b_unite(airquality, col = "month_day", columns = c("Month","Day"))%>%
head
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.