when I use the: y <-take.y (d.ecdc, "Italy")
it gives me:
Error in take.y(d.ecdc, "Italy") :
unknown 'country', see 'levels(d[,7])'
i tried to add this command before
as.factor(d.ecdc[,7])
but i have the same error.
I have Rstudio Version 1.3.1093 for Mac