A vectorised function for use with dplyr's mutate, etc
reunite(..., sep = "_")
Variables to pass to the function, currently only two at a time
Separator when vectors reunited, by default "_"
A single vector with unique non-missing information
data <- data.frame(fir=c(NA, "two", "three", NA), sec=c("one", NA, "three", NA), stringsAsFactors = FALSE) transmutate(data, single = reunite(fir, sec))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.