distinct.trackr_df {dtrackr} | R Documentation |
Distinct values of data
Description
Distinct acts in the same way as in dplyr::distinct
. Prior to the operation
the size of the group is calculated {.count.in} and after the operation the
output size {.count.out} The group {.strata} is also available (if
grouped) for reporting. See dplyr::distinct()
.
Usage
## S3 method for class 'trackr_df'
distinct(
.data,
...,
.messages = "removing {.count.in-.count.out} duplicates",
.headline = .defaultHeadline(),
.tag = NULL
)
Arguments
.data |
A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr). See Methods, below, for more details. |
... |
< |
.messages |
a set of glue specs. The glue code can use any global variable, or {.strata},{.count.in},and {.count.out} |
.headline |
a headline glue spec. The glue code can use any global variable, or {.strata},{.count.in},and {.count.out} |
.tag |
if you want the summary data from this step in the future then give it a name with .tag. |
Value
the .data dataframe with distinct values and history graph updated.
See Also
dplyr::distinct()
Examples
library(dplyr)
library(dtrackr)
tmp = bind_rows(iris %>% track(), iris %>% track() %>% filter(Petal.Length > 5))
tmp %>% group_by(Species) %>% distinct() %>% history()