msberends / AMR

Functions to simplify and standardise antimicrobial resistance (AMR) data analysis and to work with microbial and antimicrobial properties by using evidence-based methods, as described in https://doi.org/10.18637/jss.v104.i03.
https://msberends.github.io/AMR/
Other
83 stars 12 forks source link

as.sir function not found #101

Closed arsp-dev closed 1 year ago

arsp-dev commented 1 year ago

Hi,

im trying to follow the guide on this link https://msberends.github.io/AMR/articles/WHONET.html but it throws a error 'Error in is_fun_list(.funs) : object 'as.sir' not found'

image

can anyone help me with this. Thank you!

msberends commented 1 year ago

Hi, thanks for reaching out!

The as.sir() function is part of AMR v2.0, which was released last week. The website reflects the last version (as can also be seen at the left top of the website. The solution is simple:

install.packages("AMR")

This will install the latest version. Remember to also load the library when you start the analysis:

library(AMR)

Let me know if this helps!

arsp-dev commented 1 year ago

Hi @msberends thank you for helping. it works! i will now close this thread