Skip to content

Commit 95e6246

Browse files
committed
cleaning comments for basic conversion test
1 parent f8eabb4 commit 95e6246

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/testthat/test-convert_age_to_years.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
test_that("convert_age_to_years: basic conversions", {
22
df <- tibble::tibble(
33
USUBJID = c("P1", "P2", "P3", "P4"),
4-
AGE = c(365, 104, 24, 30.7), # 365 days -> 1 year; 104 weeks -> floor(104/52)=2; 24 months -> floor(24/12)=2; 30.7 years -> floor(30.7)=30
4+
AGE = c(365, 104, 24, 30.7),
5+
# 365 days -> 1 year; 104 weeks -> floor(104/52)=2; 24 months -> floor(24/12)=2; 30.7 years -> floor(30.7)=30
56
AGEU = c("DAYS", "WEEKS", "MONTHS", "YEARS")
67
)
78

0 commit comments

Comments
 (0)