I have a problem in relation to a database related to dengue. I have in this database some variables, among them the variable "Cases", which indicates the number of dengue cases in a given period. But I want to apply the logistic regression model to these data, so the idea is to make this variable with integers, to become a binary variable, that is, for places that did not have dengue cases in that period, I want to put 0 in place of the quantity that I already have, and for places that have had cases, put 1. As there are 35628 lines, I want to do it in an automated way, to avoid doing it, manually. Would anyone have any idea how to proceed in order to put this idea into practice? I'm new to programming and I'm trying to implement it in the R language. If they know of a package that does this, it helps a lot. Each neighborhood is conditioned to a number.

I appreciate any help and thank you very much.

| neighborhood | Dates | Cases | precipitation | Temperature |
| --- | --- | --- | --- | --- |
| 0 | Jan/14 | 10 | 149,6 | 33,25 |
| 1 | Fev/14 | 0 | 254 | 30,1 |
| 2 | Mar/14 | 6 | 150 | 25,4 |
| 3 | Apr/14 | 0 | 244,1 | 32,5 |
| 4 | May/14 | 3 | 44,3 | 33,2 |

I appreciate any help and thank you very much.