blog
blog copied to clipboard
Error in incidence(.) : could not find function "incidence"
At the point in your blog (Modelling the effects of public health interventions on COVID-19 transmission using R - part 1) where the dataframe sims_incidence_rates is set up, I get this error:
Error in incidence(.) : could not find function "incidence"
You need to load the incidence library. Install it from CRAN.
t
On 20 Mar 2020, at 20:47, j0hnT [email protected] wrote:
At the point in your blog (Modelling the effects of public health interventions on COVID-19 transmission using R - part 1) where the dataframe sims_incidence_rates is set up, I get this error:
Error in incidence(.) : could not find function "incidence"
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Hi Tim, I'm having trouble getting EpiModel package to work on my laptop, I am using a Mac, Catalina OS and R version 3.6.0. What version of R did you run this code on? thank you, it's super interesting!
You need to install the incidence library from CRAN and load it. I accidentally omitted that from my code.
Tim C
On Sat, 28 Mar 2020 at 06:14, computequeen [email protected] wrote:
Hi Tim, I'm having trouble getting EpiModel package to work on my laptop, I am using a Mac, Catalina OS and R version 3.6.0. What version of R did you run this code on? thank you, it's super interesting!
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/timchurches/blog/issues/4#issuecomment-605226236, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAV2AYPREG22ZO7NPQQGESDRJT3KFANCNFSM4LQG4IOA .
hi, Tim
I am trying run this analysing-covid-19-2019-ncov-outbreak-data-with-r-part-1.Rmd on my laptop, everyting seems going well except here,
,and I've library incidence package, please help me, thanks a lot!
Also, all the incidence plots following this show the same way
I now get the same problem. It appears to be an upstream problem in the incidence package, because it used to work. Try downgrading the incidence package helps.
t
On 28 Mar 2020, at 20:28, SandyBu [email protected] wrote:
hi, Tim I am trying run this analysing-covid-19-2019-ncov-outbreak-data-with-r-part-1.Rmd on my laptop, everyting seems going well except here,
,and I've library incidence package, please help me, thanks a lot!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
hi, the part1 problem solved,I update the incidence package and it also works, thanks a lot! but when I run this analysing-covid-19-2019-ncov-outbreak-data-with-r-part-2.Rmd, it seems there's something wrong with data chinese_provinces_confirmed as the following shows, I try to change the header and read it from the local file, while it went wrong in the next line, pls help me check with it, thanks a lot!