Skip to content

Commit cf9a489

Browse files
authored
Merge pull request #210 from atorus-research/devel
Devel
2 parents ce758f6 + 39684e7 commit cf9a489

5 files changed

Lines changed: 18 additions & 17 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: Tplyr
22
Title: A Traceability Focused Grammar of Clinical Data Summary
3-
Version: 1.3.1
3+
Version: 1.3.2
44
Authors@R:
55
c(
66
person(given = "Eli",

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Tplyr 1.3.1
1+
# Tplyr 1.3.2
22

33
## Internal Changes
44
- Refactored internal functions to eliminate `evalq()` usage and adopt the Extract-Process-Bind pattern, improving code clarity and maintainability without affecting user-facing functionality

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ When you look at this table, you can begin breaking this output down into smalle
7474
So we have one table, with 6 summaries (7 including the next page, not shown) - but only 2 different approaches to summaries being performed.
7575
In the same way that [dplyr](https://dplyr.tidyverse.org/) is a grammar of data manipulation, **Tplyr** aims to be a grammar of data summary. The goal of **Tplyr** is to allow you to program a summary table like you see it on the page, by breaking a larger problem into smaller 'layers', and combining them together like you see on the page.
7676

77-
Enough talking - let's see some code. In these examples, we will be using data from the [PHUSE Test Data Factory]( https://advance.phuse.global/display/WEL/Test+Dataset+Factory) based on the [original pilot project submission package](https://github.com/atorus-research/CDISC_pilot_replication). We've packaged some subsets of that data into **Tplyr**, which you can use to replicate our examples and run our vignette code yourself. Note: You can see our replication of the CDISC pilot using the PHUSE Test Data Factory data [here](https://github.com/atorus-research/CDISC_pilot_replication).
77+
Enough talking - let's see some code. In these examples, we will be using data from the [PHUSE Test Data Factory](https://github.com/phuse-org/TestDataFactory) based on the [original pilot project submission package](https://github.com/atorus-research/CDISC_pilot_replication). We've packaged some subsets of that data into **Tplyr**, which you can use to replicate our examples and run our vignette code yourself. Note: You can see our replication of the CDISC pilot using the PHUSE Test Data Factory data [here](https://github.com/atorus-research/CDISC_pilot_replication).
7878

7979
```{r initial_demo}
8080
tplyr_table(tplyr_adsl, TRT01P, where = SAFFL == "Y") %>%

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ and Integrated Summary
7272
Documents](https://phuse.s3.eu-central-1.amazonaws.com/Deliverables/Standard+Analyses+and+Code+Sharing/Analyses+%26+Displays+Associated+with+Demographics,+Disposition+and+Medication+in+Phase+2-4+Clinical+Trials+and+Integrated+Summary+Documents.pdf).
7373

7474
<p align="center">
75+
7576
<img src="vignettes/demo_table.png" width="800px">
7677
</p>
7778

@@ -101,8 +102,8 @@ you see it on the page, by breaking a larger problem into smaller
101102

102103
Enough talking - let’s see some code. In these examples, we will be
103104
using data from the [PHUSE Test Data
104-
Factory](https://advance.phuse.global/display/WEL/Test+Dataset+Factory)
105-
based on the [original pilot project submission
105+
Factory](https://github.com/phuse-org/TestDataFactory) based on the
106+
[original pilot project submission
106107
package](https://github.com/atorus-research/CDISC_pilot_replication).
107108
We’ve packaged some subsets of that data into **Tplyr**, which you can
108109
use to replicate our examples and run our vignette code yourself. Note:
@@ -122,17 +123,17 @@ tplyr_table(tplyr_adsl, TRT01P, where = SAFFL == "Y") %>%
122123
kable()
123124
```
124125

125-
| row_label1 | row_label2 | var1_Placebo | var1_Xanomeline High Dose | var1_Xanomeline Low Dose | ord_layer_index | ord_layer_1 | ord_layer_2 |
126-
|:---------------------|:-----------|:-------------|:--------------------------|:-------------------------|----------------:|------------:|------------:|
127-
| Age (years) | n | 86 | 84 | 84 | 1 | 1 | 1 |
128-
| Age (years) | Mean (SD) | 75.2 ( 8.59) | 74.4 ( 7.89) | 75.7 ( 8.29) | 1 | 1 | 2 |
129-
| Age (years) | Median | 76.0 | 76.0 | 77.5 | 1 | 1 | 3 |
130-
| Age (years) | Q1, Q3 | 69.2, 81.8 | 70.8, 80.0 | 71.0, 82.0 | 1 | 1 | 4 |
131-
| Age (years) | Min, Max | 52, 89 | 56, 88 | 51, 88 | 1 | 1 | 5 |
132-
| Age (years) | Missing | 0 | 0 | 0 | 1 | 1 | 6 |
133-
| Age Categories n (%) | \<65 | 14 ( 16.3%) | 11 ( 13.1%) | 8 ( 9.5%) | 2 | 1 | 1 |
134-
| Age Categories n (%) | \>80 | 30 ( 34.9%) | 18 ( 21.4%) | 29 ( 34.5%) | 2 | 1 | 2 |
135-
| Age Categories n (%) | 65-80 | 42 ( 48.8%) | 55 ( 65.5%) | 47 ( 56.0%) | 2 | 1 | 3 |
126+
| row_label1 | row_label2 | var1_Placebo | var1_Xanomeline High Dose | var1_Xanomeline Low Dose | ord_layer_index | ord_layer_1 | ord_layer_2 |
127+
|:---|:---|:---|:---|:---|---:|---:|---:|
128+
| Age (years) | n | 86 | 84 | 84 | 1 | 1 | 1 |
129+
| Age (years) | Mean (SD) | 75.2 ( 8.59) | 74.4 ( 7.89) | 75.7 ( 8.29) | 1 | 1 | 2 |
130+
| Age (years) | Median | 76.0 | 76.0 | 77.5 | 1 | 1 | 3 |
131+
| Age (years) | Q1, Q3 | 69.2, 81.8 | 70.8, 80.0 | 71.0, 82.0 | 1 | 1 | 4 |
132+
| Age (years) | Min, Max | 52, 89 | 56, 88 | 51, 88 | 1 | 1 | 5 |
133+
| Age (years) | Missing | 0 | 0 | 0 | 1 | 1 | 6 |
134+
| Age Categories n (%) | \<65 | 14 ( 16.3%) | 11 ( 13.1%) | 8 ( 9.5%) | 2 | 1 | 1 |
135+
| Age Categories n (%) | \>80 | 30 ( 34.9%) | 18 ( 21.4%) | 29 ( 34.5%) | 2 | 1 | 2 |
136+
| Age Categories n (%) | 65-80 | 42 ( 48.8%) | 55 ( 65.5%) | 47 ( 56.0%) | 2 | 1 | 3 |
136137

137138
## **Tplyr** is Qualified
138139

cran-comments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Submission 1.3.1
22
* Internal refactoring and performance optimizations for nested count layers
3-
* Bug fixes for nested count sorting, negative number extraction, vignette options handling, difftime attributes, and risk difference with NAs
3+
* Bug fixes for nested count sorting, negative number extraction, vignette options handling, difftime attributes, apply_row_masks, and risk difference with NAs
44

55
## Test Environments
66

0 commit comments

Comments
 (0)