Helper for consistent documentation of keepOriginalCohorts
.
+
+ keepOriginalCohortsDoc.Rd
Helper for consistent documentation of keepOriginalCohorts
.
From 14d26adae8e71594793010d38264899454007344 Mon Sep 17 00:00:00 2001 From: edward-burn <9583964+edward-burn@users.noreply.github.com> Date: Tue, 15 Oct 2024 14:30:57 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20OHDSI/Co?= =?UTF-8?q?hortConstructor@f65370c19fbb6f850bfa63ece054cc922872f3cb=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- articles/a01_building_base_cohorts.html | 4 +- articles/a06_concatanate_cohorts.html | 14 ++--- articles/a07_filter_cohorts.html | 24 ++++---- pkgdown.yml | 2 +- reference/entryAtFirstDate.html | 4 +- reference/entryAtLastDate.html | 8 +-- reference/exitAtDeath.html | 12 ++-- reference/exitAtFirstDate.html | 4 +- reference/exitAtLastDate.html | 4 +- reference/exitAtObservationEnd.html | 12 ++-- reference/intersectCohorts.html | 5 +- reference/keepOriginalCohortsDoc.html | 81 +++++++++++++++++++++++++ reference/matchCohorts.html | 28 +++++---- reference/padCohortEnd.html | 10 +-- reference/requireFutureObservation.html | 10 +-- reference/sampleCohorts.html | 20 +++--- reference/trimDemographics.html | 20 +++--- reference/unionCohorts.html | 5 +- search.json | 2 +- sitemap.xml | 1 + 20 files changed, 178 insertions(+), 92 deletions(-) create mode 100644 reference/keepOriginalCohortsDoc.html diff --git a/articles/a01_building_base_cohorts.html b/articles/a01_building_base_cohorts.html index f4dff55..7231f35 100644 --- a/articles/a01_building_base_cohorts.html +++ b/articles/a01_building_base_cohorts.html @@ -130,7 +130,7 @@
cdm$medications %>%
filter(subject_id == 1)
#> # Source: SQL [4 x 4]
-#> # Database: DuckDB v1.1.0 [unknown@Linux 6.8.0-1015-azure:R 4.4.1//tmp/RtmpsXOjF1/file22912456db56.duckdb]
+#> # Database: DuckDB v1.1.0 [unknown@Linux 6.8.0-1015-azure:R 4.4.1//tmp/RtmpokWpAD/file235c4a3f863a.duckdb]
#> cohort_definition_id subject_id cohort_start_date cohort_end_date
#> <int> <int> <date> <date>
-#> 1 1 1 1980-03-15 1980-03-29
+#> 1 1 1 1976-10-20 1976-11-03
#> 2 1 1 1971-01-04 1971-01-18
#> 3 1 1 1982-09-11 1982-10-02
-#> 4 1 1 1976-10-20 1976-11-03
+#> 4 1 1 1980-03-15 1980-03-29
cdm$medications_collapsed %>%
filter(subject_id == 1)
#> # Source: SQL [3 x 4]
-#> # Database: DuckDB v1.1.0 [unknown@Linux 6.8.0-1015-azure:R 4.4.1//tmp/RtmpsXOjF1/file22912456db56.duckdb]
+#> # Database: DuckDB v1.1.0 [unknown@Linux 6.8.0-1015-azure:R 4.4.1//tmp/RtmpokWpAD/file235c4a3f863a.duckdb]
#> cohort_definition_id subject_id cohort_start_date cohort_end_date
#> <int> <int> <date> <date>
-#> 1 1 1 1971-01-04 1971-01-18
-#> 2 1 1 1976-10-20 1976-11-03
-#> 3 1 1 1980-03-15 1982-10-02
+#> 1 1 1 1976-10-20 1976-11-03
+#> 2 1 1 1980-03-15 1982-10-02
+#> 3 1 1 1971-01-04 1971-01-18
Subject 1 initially had 4 records between 1971 and 1982. After specifying that records within three years of each other are to be merged, the number of records decreases to three. The record from diff --git a/articles/a07_filter_cohorts.html b/articles/a07_filter_cohorts.html index 44ac121..9b118ea 100644 --- a/articles/a07_filter_cohorts.html +++ b/articles/a07_filter_cohorts.html @@ -108,26 +108,26 @@
cdm$medications |> sampleCohorts(cohortId = NULL, n = 100)
#> # Source: table<main.my_study_medications> [?? x 4]
-#> # Database: DuckDB v1.1.0 [unknown@Linux 6.8.0-1015-azure:R 4.4.1//tmp/RtmpsGjtDs/file22d55aafcac0.duckdb]
+#> # Database: DuckDB v1.1.0 [unknown@Linux 6.8.0-1015-azure:R 4.4.1//tmp/RtmpVrqQk5/file239e75b6b88.duckdb]
#> cohort_definition_id subject_id cohort_start_date cohort_end_date
#> <int> <int> <date> <date>
-#> 1 1 1646 1956-12-06 1956-12-20
-#> 2 1 1646 2014-02-10 2014-02-24
-#> 3 1 2501 1981-11-14 1981-11-21
-#> 4 1 2501 1992-07-17 1992-07-31
-#> 5 1 2501 1997-06-15 1997-06-29
-#> 6 2 53 1999-12-24 1999-12-24
-#> 7 1 2818 1985-07-12 1985-07-26
-#> 8 1 2818 1997-10-01 1997-10-15
-#> 9 1 3418 2008-12-27 2009-01-03
-#> 10 1 4922 2011-12-05 2011-12-26
+#> 1 1 2237 1936-05-05 1936-05-12
+#> 2 1 182 1984-03-17 1984-03-31
+#> 3 1 2028 2015-12-03 2015-12-31
+#> 4 2 4922 2013-06-15 2013-06-15
+#> 5 1 4160 1978-05-17 1978-07-16
+#> 6 1 1551 2008-09-20 2008-10-11
+#> 7 1 2617 1956-09-16 1956-09-23
+#> 8 1 3789 1950-09-02 1950-09-09
+#> 9 2 1649 1993-05-17 1993-05-17
+#> 10 1 1813 2007-04-21 2007-05-05
#> # ℹ more rows
cohortCount(cdm$medications)
#> # A tibble: 2 × 3
#> cohort_definition_id number_records number_subjects
#> <int> <int> <int>
-#> 1 1 388 100
+#> 1 1 346 100
#> 2 2 100 100
When cohortId = NULL all cohorts in the table are used. Note that this function does not reduced the number of records in each cohort, diff --git a/pkgdown.yml b/pkgdown.yml index 697327a..cbb8443 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -14,7 +14,7 @@ articles: a09_combine_cohorts: a09_combine_cohorts.html a10_match_cohorts: a10_match_cohorts.html a11_benchmark: a11_benchmark.html -last_built: 2024-10-15T14:16Z +last_built: 2024-10-15T14:25Z urls: reference: https://ohdsi.github.io/CohortConstructor/reference article: https://ohdsi.github.io/CohortConstructor/articles diff --git a/reference/entryAtFirstDate.html b/reference/entryAtFirstDate.html index 80fa884..9e58eac 100644 --- a/reference/entryAtFirstDate.html +++ b/reference/entryAtFirstDate.html @@ -182,8 +182,8 @@
If TRUE the original cohorts and the newly -created intersection cohort will be returned. If FALSE only the new cohort -will be returned.
If TRUE the original cohorts will be return +together with the new ones. If FALSE only the new cohort will be returned.
keepOriginalCohorts
.keepOriginalCohortsDoc.Rd
Helper for consistent documentation of keepOriginalCohorts
.
If TRUE the original cohorts will be return +together with the new ones. If FALSE only the new cohort will be returned.
Name of the new cohort table created in the cdm object.
If TRUE the original cohorts and the newly -created union cohort will be returned. If FALSE only the new cohort will be -returned.
If TRUE the original cohorts will be return +together with the new ones. If FALSE only the new cohort will be returned.