Skip to content

Commit 801fc4e

Browse files
committed
dev version
1 parent 84e3f95 commit 801fc4e

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

CRAN-SUBMISSION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Version: 0.4.0
2-
Date: 2023-03-24 15:03:54 UTC
3-
SHA: 01147162f3adb2a9815e9967a18db7a9056aec24
1+
Version: 0.4.4
2+
Date: 2023-09-04 11:52:14 UTC
3+
SHA: 84e3f953625e8b94f665bd82b7d680188ccd0e7b

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: dtrackr
22
Title: Track your Data Pipelines
3-
Version: 0.4.4
3+
Version: 0.4.4.9001
44
Authors@R:
55
person(given = "Robert",
66
family = "Challen",

R/experimental/group-counting.R

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#TODO:
2+
# Configure a countable items named list of expressions
3+
# or maybe better a formula like the exclusion spec
4+
# Use a n_distinct call to generate a set of additional .count type columns
5+
# maybe this is able to use status.
6+
7+
# iris %>% dplyr::group_by(Species) %>% summarise(n = n_distinct(Petal.Length+Sepal.Length))
8+
# iris %>% dplyr::group_by(Species) %>% dplyr::summarise(n = dplyr::n_distinct(Petal.Length+Sepal.Length))
9+
# iris %>% dplyr::group_by(Species) %>% dplyr::summarise(n = dplyr::n_distinct(Petal.Length+Sepal.Length, Sepal.Width+Petal.Width))
10+
# x = function(...) {dots = rlang::enexprs(...); browser()}
11+
# x(a = c(Petal.Length+Sepal.Length, Sepal.Wdith), b= c(asdasda) )
12+
# class(dots$a)
13+
# as.expression(dots$a)
14+
# as.expression(unlist(dots$a))
15+
# x(a = c(Petal.Length+Sepal.Length, Sepal.Wdith), b= c(asdasda) )
16+
# x(a = c(Petal.Length+Sepal.Length, Sepal.Width), b= c(asdasda) )
17+
# iris %>% dplyr::summarise(n = !!dots$a)
18+
# iris %>% dplyr::summarise(n = dplyr::n_distinct(!!dots$a))
19+
# iris %>% dplyr::summarise(n = dplyr::n_distinct(!!dots$b))
20+
# iris %>% dplyr::summarise(n = dplyr::n_distinct(Petal.Length + Sepal.Length, Sepal.Width))
21+
# iris %>% dplyr::summarise(n = dplyr::n_distinct(c(Petal.Length + Sepal.Length, Sepal.Width)))

0 commit comments

Comments
 (0)