Skip to content

Commit f634d22

Browse files
committed
spelling and eunomia
1 parent 20f016c commit f634d22

11 files changed

+33
-17
lines changed

R/generateIntersectCohorts.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ generateIntersectCohortSet <- function(cdm,
178178
#' @export
179179
#'
180180
#' @return Table in the cdm with start, end and by as columns. Periods are not
181-
#' going to overlpa between each other.
181+
#' going to overlap between each other.
182182
#'
183183
splitOverlap <- function(x,
184184
start = "cohort_start_date",
@@ -244,7 +244,7 @@ splitOverlap <- function(x,
244244
#' @export
245245
#'
246246
#' @return Table in the cdm with start, end and by as columns. Periods are not
247-
#' going to overlpa between each other.
247+
#' going to overlap between each other.
248248
#'
249249
joinOverlap <- function(x,
250250
start = "cohort_start_date",
@@ -302,7 +302,7 @@ joinOverlap <- function(x,
302302
CDMConnector::computeQuery()
303303
}
304304

305-
#' Get ramdon identifies not present in a table based on a prefix.
305+
#' Get random identifiers not present in a table based on a prefix.
306306
#'
307307
#' @param x Table.
308308
#' @param len Number of identifiers.

R/requireDemographics.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#' @param ageRange A list of minimum and maximum age
99
#' @param sex Can be "Both", "Male" or "Female". If one of the latter, only
1010
#' those with that sex will be included.
11-
#' @param minPriorObservation A mimimum number of prior observation days in
11+
#' @param minPriorObservation A minimum number of prior observation days in
1212
#' the database.
1313
#' @param minFutureObservation A minimum number of future observation days in
1414
#' the database.
@@ -147,7 +147,7 @@ requireSex <- function(cohort,
147147
#' @param cohort A cohort table in a cdm reference
148148
#' @param indexDate Variable in cohort that contains the date to compute the
149149
#' demographics characteristics on which to restrict on.
150-
#' @param minPriorObservation A mimimum number of prior observation days in
150+
#' @param minPriorObservation A minimum number of prior observation days in
151151
#' the database.
152152
#'
153153
#' @return The cohort table with only records for individuals satisfying the

README.Rmd

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ knitr::opts_chunk$set(
1616
# CohortConstructor
1717

1818
<!-- badges: start -->
19-
[![CRAN status](https://www.r-pkg.org/badges/version/CohortConstructor)](https://CRAN.R-project.org/package=CohortConstructor)
20-
[![codecov.io](https://codecov.io/github/oxford-pharmacoepi/CohortConstructor/coverage.svg?branch=main)](https://app.codecov.io/github/oxford-pharmacoepi/CohortConstructor?branch=main)
2119
[![R-CMD-check](https://github.com/oxford-pharmacoepi/CohortConstructor/workflows/R-CMD-check/badge.svg)](https://github.com/oxford-pharmacoepi/CohortConstructor/actions)
2220
[![Lifecycle:Experimental](https://img.shields.io/badge/Lifecycle-Experimental-339999)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
2321
<!-- badges: end -->

README.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
<!-- badges: start -->
77

8-
[![CRAN
9-
status](https://www.r-pkg.org/badges/version/CohortConstructor)](https://CRAN.R-project.org/package=CohortConstructor)
10-
[![codecov.io](https://codecov.io/github/oxford-pharmacoepi/CohortConstructor/coverage.svg?branch=main)](https://app.codecov.io/github/oxford-pharmacoepi/CohortConstructor?branch=main)
118
[![R-CMD-check](https://github.com/oxford-pharmacoepi/CohortConstructor/workflows/R-CMD-check/badge.svg)](https://github.com/oxford-pharmacoepi/CohortConstructor/actions)
129
[![Lifecycle:Experimental](https://img.shields.io/badge/Lifecycle-Experimental-339999)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
1310
<!-- badges: end -->
@@ -214,7 +211,7 @@ Both diclofenac and acetaminophen
214211
Generate a combination cohort.
215212

216213
``` r
217-
cdm <- generateCombinationCohortSet(cdm = cdm,
214+
cdm <- generateIntersectCohortSet(cdm = cdm,
218215
name = "combinations",
219216
targetCohortName = "medications")
220217

inst/WORDLIST

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
CDMConnector
2+
CMD
3+
DrugUtilisation
4+
Eunomia
5+
Lifecycle
6+
OMOP
7+
ORCID
8+
cdm
9+
codecov
10+
diclofenac
11+
generateDrugUtilisationCohortSet
12+
indexDate
13+
individuals’
14+
io
15+
matchSex
16+
matchYearOfBirth
17+
overlaping

man/getIdentifier.Rd

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/joinOverlap.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/requireDemographics.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/requirePriorObservation.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/splitOverlap.Rd

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/a02_applying_cohort_restrictions.Rmd

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ knitr::opts_chunk$set(
1414
warning = FALSE,
1515
comment = "#>"
1616
)
17+
18+
if (Sys.getenv("EUNOMIA_DATA_FOLDER") == "") Sys.setenv("EUNOMIA_DATA_FOLDER" = file.path(tempdir(), "eunomia"))
19+
if (!dir.exists(Sys.getenv("EUNOMIA_DATA_FOLDER"))) dir.create(Sys.getenv("EUNOMIA_DATA_FOLDER"))
20+
if (!eunomia_is_available()) downloadEunomiaData()
1721
```
1822

1923
For this example we'll use the Eunomia synthetic data from the CDMConnector package.

0 commit comments

Comments
 (0)