Skip to content

Commit f169a28

Browse files
committed
edit argument name due to depricate notification
1 parent 3f4b837 commit f169a28

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

episodes/contact-matrices.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@ The R package `{socialmixr}` contains functions which can estimate contact matri
8787
polymod <- socialmixr::polymod
8888
```
8989

90-
Then we can obtain the contact matrix for the age categories we want by specifying `age.limits`.
90+
Then we can obtain the contact matrix for the age categories we want by specifying `age_limits`.
9191

9292
```{r polymod_uk, echo = TRUE}
9393
contact_data <- socialmixr::contact_matrix(
9494
survey = polymod,
9595
countries = "United Kingdom",
96-
age.limits = c(0, 20, 40),
96+
age_limits = c(0, 20, 40),
9797
symmetric = TRUE
9898
)
9999
contact_data
@@ -184,7 +184,7 @@ Similar to the code above, to access vector values within a dataframe, you can u
184184
contact_data_zambia <- socialmixr::contact_matrix(
185185
survey = zambia_sa_survey,
186186
countries = "Zambia", # key argument
187-
age.limits = c(0, 20),
187+
age_limits = c(0, 20),
188188
symmetric = TRUE
189189
)
190190
@@ -319,7 +319,7 @@ Normalisation can be performed by the function `contact_matrix()` in `{socialmix
319319
contact_data_split <- socialmixr::contact_matrix(
320320
survey = polymod,
321321
countries = "United Kingdom",
322-
age.limits = c(0, 20, 40),
322+
age_limits = c(0, 20, 40),
323323
symmetric = TRUE,
324324
split = TRUE
325325
)

episodes/disease-burden.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ polymod <- socialmixr::polymod
8888
contact_data <- socialmixr::contact_matrix(
8989
polymod,
9090
countries = "United Kingdom",
91-
age.limits = c(0, 20, 40),
91+
age_limits = c(0, 20, 40),
9292
symmetric = TRUE
9393
)
9494

episodes/modelling-interventions.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ survey_data <- socialmixr::polymod
9292
cm_results <- socialmixr::contact_matrix(
9393
survey = survey_data,
9494
countries = "United Kingdom",
95-
age.limits = c(0, 15, 65),
95+
age_limits = c(0, 15, 65),
9696
symmetric = TRUE
9797
)
9898

episodes/simulating-transmission.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ polymod <- socialmixr::polymod
203203
contact_data <- socialmixr::contact_matrix(
204204
polymod,
205205
countries = "United Kingdom",
206-
age.limits = c(0, 20, 40),
206+
age_limits = c(0, 20, 40),
207207
symmetric = TRUE
208208
)
209209

episodes/vaccine-comparisons.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ polymod <- socialmixr::polymod
7070
contact_data <- socialmixr::contact_matrix(
7171
polymod,
7272
countries = "United Kingdom",
73-
age.limits = c(0, 15, 65),
73+
age_limits = c(0, 15, 65),
7474
symmetric = TRUE
7575
)
7676

0 commit comments

Comments
 (0)