Re: [R] Rolling 7 day incidence

2021-08-19 Thread Dr Eberhard Lisse
Thanks, I'll delve into this deepr, eventually :-)-O el On 17/08/2021 15:09, PIKAL Petr wrote: Hi You're wellcome. You probably know https://www.repidemicsconsortium.org/projects/ as a collection of tools for epidemy evaluation. Cheers Petr [...] -- To email me replace 'nospam' with 'el'

Re: [R] Rolling 7 day incidence

2021-08-17 Thread PIKAL Petr
r-help@r-project.org > Subject: Re: [R] Rolling 7 day incidence > > Petr, > > thank you very much, this pointed me in the right direction (to refine my > Google search :-)-O): > >library(tidyverse) >library(coronavirus) >

Re: [R] Rolling 7 day incidence

2021-08-17 Thread Dr Eberhard Lisse
Petr, thank you very much, this pointed me in the right direction (to refine my Google search :-)-O): library(tidyverse) library(coronavirus) library(zoo) as_tibble(coronavirus) %>% filter(country=='Namibia' & type=="confirmed") %>%

Re: [R] Rolling 7 day incidence

2021-08-17 Thread PIKAL Petr
erhard > Lisse > Sent: Tuesday, August 17, 2021 12:25 PM > To: r-help@r-project.org > Subject: [R] Rolling 7 day incidence > > Hi, > > I am loading the coronavirus dataset everyday which looks something like: > > >as_tibble(coronavirus) %>% >

[R] Rolling 7 day incidence

2021-08-17 Thread Dr Eberhard Lisse
Hi, I am loading the coronavirus dataset everyday which looks something like: as_tibble(coronavirus) %>% filter(country=="Namibia" & type=="confirmed") %>% arrange(desc(date)) %>% print(n=10) # A tibble: 573 × 7