error in take.y()

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

Hi,

Welcome to the forum. It is going to be difficult for anyone to help you without a reprex. I suggest making one (see here: FAQ: How to do a minimal reproducible example ( reprex ) for beginners) and we'll be able to help :slight_smile:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.