Skip to content

Commit 102c437

Browse files
avallecamclaude
andcommitted
fix deprecated socialmixr::list_surveys() and link Zenodo community in contact-matrices
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 13a8ae5 commit 102c437

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

episodes/contact-matrices.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ If `symmetric` is set to TRUE, the `contact_matrix()` function will internally u
134134

135135
::::::::::::::::::::::::::::::::::::::::::::::::
136136

137-
The example above uses the POLYMOD survey. There are a number of surveys available in `socialmixr`. To list the available surveys, use `socialmixr::list_surveys()`. To download a survey from Zenodo and load it, we use `contactsurveys::download_survey()` followed by `socialmixr::load_survey()`:
137+
The example above uses the POLYMOD survey. A number of surveys are available in the [Zenodo Social Contact Data community](https://zenodo.org/communities/social_contact_data/). To list available surveys programmatically, use `contactsurveys::list_surveys()`. To download a survey from Zenodo and load it, we use `contactsurveys::download_survey()` followed by `socialmixr::load_survey()`:
138138

139139
```{r, message = FALSE, warning = FALSE}
140140
# Download and load the contact survey data for Zambia from Zenodo
@@ -151,11 +151,11 @@ zambia_sa_survey <- socialmixr::load_survey(files = zambia_survey_files)
151151
You can explore all the available surveys from the Zenodo repository at <https://zenodo.org/communities/social_contact_data/>. If you are interested in accessing to a specific URL within R, you can try:
152152

153153
```r
154-
library(socialmixr)
154+
library(contactsurveys)
155155
library(tidyverse)
156156

157-
# Get URL for Zambia contact survey data from {socialmixr}
158-
socialmixr::list_surveys() %>%
157+
# Get URL for Zambia contact survey data from {contactsurveys}
158+
contactsurveys::list_surveys() %>%
159159
dplyr::filter(stringr::str_detect(title, "Zambia")) %>%
160160
dplyr::pull(url)
161161
```

0 commit comments

Comments
 (0)