Skip to content

Commit fdae8b4

Browse files
avallecamclaude
andcommitted
fix deprecated age.limits -> age_limits in contact_matrix() calls
The dot notation age.limits was deprecated in favor of age_limits. Update compare-interventions.Rmd (2 occurrences) and template.Rmd (3 occurrences). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2dc4e3a commit fdae8b4

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

episodes/compare-interventions.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ polymod <- socialmixr::polymod
1616
contact_data <- socialmixr::contact_matrix(
1717
polymod,
1818
countries = "United Kingdom",
19-
age.limits = c(0, 15, 65),
19+
age_limits = c(0, 15, 65),
2020
symmetric = TRUE
2121
)
2222
@@ -359,7 +359,7 @@ polymod <- socialmixr::polymod
359359
contact_data <- socialmixr::contact_matrix(
360360
survey = polymod,
361361
countries = "United Kingdom",
362-
age.limits = c(0, 20, 40),
362+
age_limits = c(0, 20, 40),
363363
symmetric = TRUE
364364
)
365365
# prepare contact matrix

episodes/template.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ polymod <- socialmixr::polymod
6767
contact_data <- socialmixr::contact_matrix(
6868
polymod,
6969
countries = "United Kingdom",
70-
age.limits = c(0, 20, 40),
70+
age_limits = c(0, 20, 40),
7171
symmetric = TRUE
7272
)
7373
contact_data
@@ -82,7 +82,7 @@ polymod <- socialmixr::polymod
8282
contact_data <- socialmixr::contact_matrix(
8383
polymod,
8484
countries = "United Kingdom",
85-
age.limits = c(0, 20, 40),
85+
age_limits = c(0, 20, 40),
8686
symmetric = TRUE
8787
)
8888
contact_data
@@ -120,7 +120,7 @@ polymod <- socialmixr::polymod
120120
contact_data <- socialmixr::contact_matrix(
121121
polymod,
122122
countries = "Poland",
123-
age.limits = c(0, 15, 50),
123+
age_limits = c(0, 15, 50),
124124
symmetric = TRUE
125125
)
126126
contact_data

0 commit comments

Comments
 (0)