I am looking to use a conditional statement to access date rows which are before 0021-01-11 and have NA value in a specific column (People_vaccinated for example). For those rows I wanted to impute with zero.
I want to use an IF statement with (condition1 AND condition 2). Condition1 can be df$People_vaccinated == NA
and condition2 can be df$date < 'given date'
Aucun commentaire:
Enregistrer un commentaire