limits_to_agegroups
has been changed to return bracket notated age ranges by defaultAn error in list_surveys()
was fixed which stopped this working.
contact_matrix()
was updated to only accept survey
objects, not DOIs and matches the documentation. It is still possible to get a contact matrix from a DOI but it is necessary to go through the get_survey()
function.
# No longer works!
contact_matrix("10.5281/zenodo.1095664")
# Recommended workflow
get_survey("10.5281/zenodo.1095664") |>
contact_matrix()
The efficiency of the contact_matrix()
was improved.
cite
function has been deprecated and replaced with get_citation
(#84).columns
argument has been removed from check.survey()
(#81).download_survey()
has been reduced by externalising the find_common_prefix()
function and failing early instead of relying on unnecessary if/else sequenceserror
argument has been removed from check()
and always return warnings. If you want to turn these warnings into errors, please have a look at options(warn = 2)
quiet
argument has been removed from check()
, cite()
, contact_matrix()
, and get_survey()
. If you want to silence diagnostic messages, you should use R idiomatic mechanisms, such as suppressMessages()
n
and bootstrap
options of contact_matrix()
have been deprecated and replaced with a sample.participants
argument; bootstrapping is now explained in the vignette insteadmatrix_plot()
function to plot contact matrixchkDots()
is now used to ensure no argument is silently ignored by S3 methodsget_survey()
has been split into separate functions for downloading and processing survey datareduce_agegroups