Description Usage Arguments Value Examples
This function will union the records from multiple data sets returning only the requested columns (all of which are assumed to be named the same between data sets).
1 | union_select(.data, ..., .all = TRUE)
|
.data |
A |
... |
< |
.all |
|
A tbl_spark
or a data.frame
depending on the input, .data
.
1 2 3 4 5 6 7 8 9 | a <- data.frame(col1 = c(1:10, 10), col2 = 6)
b <- data.frame(col1 = c(1:5, 5), col2 = 4)
c <- data.frame(col1 = c(0, 1, 1, 2, 3, 5, 8))
# You can union specific columns
union_select(.data = list(a, b, c), "col1")
# And you can remove duplicate records
union_select(.data = list(a, b, c), ends_with("1"), .all = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.