Paste #238833

   
pasted on 29.11.2021 22:01
  • Edit to this paste
  • Print
  • Raw
  • Compare it with the parent paste
  • Look at the parent paste
  • Show paste tree
  • Compare with paste
    #  
  • Toggle line numbers
  • Syntax highlighting  
Text paste
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
```{r}
attach(vacc)
uniweek <- unique(brushed_atvacc$YearWeekISO)

for (i in 1:length(uniweek)) {
  weekTot <- brushed_atvacc[brushed_atvacc$YearWeekISO==uniweek[i],]
  week_tdose <- weekTot$TotalDose
  tdose[i] <- sum(week_tdose)
}
```
Add Comment
Author