Skip to content

Commit 5092888

Browse files
committed
r check fixes
1 parent 9bd8045 commit 5092888

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

R/generateConceptCohortSet.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ cohortCollapseLocal <- function(x) {
132132
.groups = "drop"
133133
) %>%
134134
dplyr::select(
135-
.data$cohort_definition_id,
136-
.data$subject_id,
137-
.data$cohort_start_date,
138-
.data$cohort_end_date
135+
"cohort_definition_id",
136+
"subject_id",
137+
"cohort_start_date",
138+
"cohort_end_date"
139139
)
140140
}
141141

@@ -465,7 +465,7 @@ generateConceptCohortSet <- function(cdm,
465465
!!dateadd(df$start_date, 1))) %>%
466466
# silently ignore cdm records where end date is before start.
467467
# Another reasonable option could be to set end to start if end is before start.
468-
dplyr::filter(cohort_start_date <= .data$cohort_end_date)
468+
dplyr::filter(.data$cohort_start_date <= .data$cohort_end_date)
469469
}
470470

471471
if (length(domains) == 0) {

0 commit comments

Comments
 (0)